caelum0x 174222bcaa feat: Builder-Track named-user tools, bio + evidence-intelligence platform, Apache-2.0
Builds PaperTrail from the base skeleton into a full evidence-verification platform
for the "Built with Claude: Life Sciences" hackathon (Builder Track).

New named-user features (Build Beyond the Bench):
- Lab Notebook Companion — rough bench notes -> structured, searchable, grounded
  experiment records (lib/labNotebook, /console/lab-notebook, migration 0059)
- Clinical Trial Matcher — de-identified patient notes -> ranked eligible
  ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning
  (lib/trialMatcher, /console/trial-matcher, migrations 0060)

Platform:
- Deterministic verification moat (biostats recompute, exact-span grounding)
- 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar,
  PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier)
- Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise
  governance (RBAC, /api/v1 gateway, metering, audit chain, retention)
- 17 OSS projects assimilated into native TypeScript on our stack (backend/engines
  retained + credited in NOTICE)
- Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site
- Next.js 16 upgrade, benchmark harness (honest smoke-test caveat)

Licensing: Apache-2.0 (LICENSE + NOTICE).
2026-07-10 16:23:13 +03:00

2487 lines
45 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
:root {
--primary-color: #2c7873;
--secondary-color: #6fb98f;
--accent-color: #004445;
--background-color: #f0f7f4;
--text-color: #333;
}
body {
font-family: 'Roboto', sans-serif;
background-color: var(--background-color);
color: var(--text-color);
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
.container {
width: 100%;
max-width: 800px;
padding: 20px;
box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Roboto', sans-serif;
color: var(--primary-color);
}
h1 {
font-size: 2.5em;
margin-bottom: 30px;
text-align: center;
animation: fadeIn 1s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
form {
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
transition: transform 0.3s ease;
}
form:hover {
transform: translateY(-5px);
}
label {
display: block;
margin-bottom: 10px;
color: var(--accent-color);
font-weight: 500;
}
input[type="text"], input[type="file"], input[type="password"] {
width: 100%;
padding: 10px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s ease;
height: 40px;
box-sizing: border-box;
}
input[type="text"]:focus, input[type="file"]:focus, input[type="password"]:focus {
outline: none;
border-color: var(--primary-color);
}
button {
margin-top: 20px;
padding: 12px 20px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease, transform 0.1s ease;
}
button:hover {
background-color: var(--accent-color);
transform: translateY(-2px);
}
button:active {
transform: translateY(0);
}
#reportContent {
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin-top: 30px;
}
#reportContent h2 {
color: var(--primary-color);
border-bottom: 2px solid var(--secondary-color);
padding-bottom: 10px;
margin-bottom: 20px;
}
.claim-rating {
background-color: var(--primary-color);
color: white;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.claim-rating h3 {
color: white;
margin-top: 0;
margin-bottom: 10px;
}
.rating-value {
font-size: 2em;
font-weight: bold;
}
#reportContent a {
color: var(--primary-color);
text-decoration: none;
transition: color 0.3s ease;
}
#reportContent a:hover {
color: var(--accent-color);
}
#downloadReport {
display: block;
margin: 30px auto 0;
}
@media (max-width: 600px) {
.container {
padding: 20px;
}
form {
padding: 20px;
}
}
/* Add these new styles for the table */
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
background-color: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
th, td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
th {
background-color: var(--primary-color);
color: white;
font-weight: bold;
text-transform: uppercase;
font-size: 0.9em;
letter-spacing: 0.5px;
}
tr:nth-child(even) {
background-color: #f8f8f8;
}
tr:hover {
background-color: #f0f0f0;
transition: background-color 0.3s ease;
}
td a {
color: var(--primary-color);
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}
td a:hover {
color: var(--accent-color);
}
#totalPrice {
margin-top: 20px;
font-weight: bold;
font-size: 1.2em;
text-align: right;
color: var(--primary-color);
}
/* Responsive table for small screens */
@media screen and (max-width: 600px) {
.legacy-responsive-table table,
.legacy-responsive-table thead,
.legacy-responsive-table tbody,
.legacy-responsive-table th,
.legacy-responsive-table td,
.legacy-responsive-table tr {
display: block;
}
.legacy-responsive-table thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
.legacy-responsive-table tr {
margin-bottom: 15px;
border: 1px solid #ccc;
}
.legacy-responsive-table td {
border: none;
position: relative;
padding-left: 50%;
}
.legacy-responsive-table td:before {
position: absolute;
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
content: attr(data-label);
font-weight: bold;
}
}
.search-container {
margin-bottom: 20px;
}
#searchInput {
width: 70%;
padding: 10px;
font-size: 16px;
}
#searchButton {
padding: 10px 20px;
font-size: 16px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
.batch-preview {
border: 1px solid #ddd;
padding: 20px;
margin-bottom: 20px;
background-color: #f9f9f9;
}
.batch-preview h2 {
margin-top: 0;
}
.batch-preview table {
width: 100%;
border-collapse: collapse;
}
.batch-preview th, .batch-preview td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
.batch-preview th {
background-color: #f2f2f2;
}
.browse-link {
display: inline-block;
margin-bottom: 20px;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
text-decoration: none;
border-radius: 5px;
}
#deleteClaimButton, #deleteBatchButton {
background-color: #f44336;
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;
margin-top: 20px;
}
input[type="password"] {
width: 90%;
padding: 12px;
margin-top: 20px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s ease;
}
input[type="password"]:focus {
outline: none;
border-color: var(--primary-color);
}
/* Add these styles to your existing CSS */
.claim-input-group {
display: flex;
gap: 10px;
margin-bottom: 10px;
align-items: center;
}
.claim-input-group input[type="text"] {
flex: 1;
}
.claim-input-group button {
margin-top: 0;
height: 40px;
white-space: nowrap;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: center;
}
.button-group {
display: flex;
gap: 10px;
margin-top: 10px;
}
.results-table {
margin-top: 20px;
overflow-x: auto;
}
.results-table table {
width: 100%;
border-collapse: collapse;
}
.results-table th,
.results-table td {
padding: 10px;
border: 1px solid #ddd;
text-align: left;
}
.results-table th {
background-color: #f5f5f5;
}
.actions {
margin: 20px 0;
display: flex;
gap: 10px;
}
.button {
display: inline-block;
padding: 10px 20px;
background-color: #007bff;
color: white;
text-decoration: none;
border-radius: 4px;
}
.button:hover {
background-color: #0056b3;
}
/* Add these styles for the loading indicator */
.spinner {
display: none;
width: 20px;
height: 20px;
border: 3px solid #f3f3f3;
border-top: 3px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-left: 10px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading {
opacity: 0.5;
pointer-events: none;
}
.claim-input-group {
display: flex;
gap: 10px;
margin-bottom: 10px;
align-items: center;
}
/* Update the existing claim-input-group styles to accommodate the spinner */
.claim-input-group button {
display: flex;
align-items: center;
gap: 8px;
}
/* Add these styles to your existing CSS file */
.config-section {
margin-bottom: 20px;
width: 100%;
}
.config-toggle {
background-color: var(--primary-color);
color: white;
border: none;
padding: 12px 20px;
border-radius: 4px;
cursor: pointer;
width: 100%;
text-align: left;
margin-bottom: 10px;
transition: background-color 0.3s ease, transform 0.1s ease;
}
.config-toggle:hover {
background-color: var(--accent-color);
transform: translateY(-2px);
}
.config-toggle:active {
transform: translateY(0);
}
.config-panel {
background-color: white;
border: none;
padding: 30px;
border-radius: 8px;
margin: 20px 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.config-panel h3 {
color: var(--primary-color);
margin-bottom: 8px;
}
.config-panel .subtext {
color: #666;
font-size: 0.9em;
margin-bottom: 20px;
line-height: 1.4;
}
.config-group {
margin-bottom: 20px;
}
.config-group label {
display: block;
margin-bottom: 10px;
color: var(--accent-color);
font-weight: 500;
}
.config-group input {
width: 100%;
padding: 8px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
transition: border-color 0.3s ease;
}
.config-group input:focus {
outline: none;
border-color: var(--primary-color);
}
/* Add these new styles for radio buttons */
.radio-group {
display: flex;
flex-direction: column;
gap: 12px;
padding: 8px 0;
}
.radio-label {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
margin: 0;
cursor: pointer;
font-weight: normal;
border-radius: 6px;
transition: background-color 0.2s ease;
user-select: none;
}
.radio-label:hover {
background-color: #f5f5f5;
}
.radio-label input[type="radio"] {
appearance: none;
-webkit-appearance: none;
width: 20px;
height: 20px;
border: 2px solid var(--secondary-color);
border-radius: 50%;
margin: 0;
position: relative;
transition: all 0.2s ease;
}
.radio-label input[type="radio"]:checked {
border-color: var(--primary-color);
background-color: var(--primary-color);
box-shadow: 0 0 0 2px white inset;
}
.radio-label input[type="radio"]:focus {
outline: none;
box-shadow: 0 0 0 2px white inset, 0 0 0 2px var(--primary-color);
}
.radio-label input[type="radio"]:disabled {
border-color: #ccc;
background-color: #f0f0f0;
cursor: not-allowed;
}
.radio-label input[type="radio"]:disabled + span {
color: #999;
cursor: not-allowed;
}
/* Add a subtle animation for the radio selection */
@keyframes radio-fade {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.radio-label input[type="radio"]:checked {
animation: radio-fade 0.2s ease-out;
}
/* Add a description text style */
.radio-description {
display: block;
font-size: 0.85em;
color: #666;
margin-top: 2px;
}
/* Add these new styles for the enhanced batch results page */
.actions-bar {
display: flex;
gap: 15px;
margin-bottom: 20px;
align-items: center;
}
.danger-button {
background-color: #dc3545;
}
.danger-button:hover {
background-color: #c82333;
}
.primary-button {
background-color: var(--primary-color);
}
.filter-input {
flex-grow: 1;
padding: 8px 12px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
font-size: 14px;
}
/* Tabulator customization */
.tabulator {
background-color: white;
border: 1px solid var(--secondary-color);
border-radius: 8px;
overflow: hidden;
font-family: 'Roboto', sans-serif;
}
.tabulator-header {
background-color: var(--primary-color);
color: white;
font-weight: bold;
}
.tabulator-header-filter input {
padding: 4px 8px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
width: 100%;
box-sizing: border-box;
}
.tabulator-row {
border-bottom: 1px solid #eee;
}
.tabulator-row:nth-child(even) {
background-color: #f8f9fa;
}
.tabulator-row:hover {
background-color: #f0f0f0;
}
.report-link {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
}
.report-link:hover {
text-decoration: underline;
}
.error-message {
background-color: #fff3f3;
border: 1px solid #dc3545;
border-radius: 4px;
color: #dc3545;
margin: 1rem 0;
padding: 1rem;
text-align: center;
}
.total-price {
margin-top: 20px;
text-align: right;
font-size: 1.2em;
color: var(--primary-color);
background-color: white;
padding: 15px;
border-radius: 4px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Add these styles for wider table layout */
.wide-container {
max-width: 1400px; /* Increased from 800px */
width: 95%; /* Use percentage instead of fixed width */
margin: 0 auto; /* Center the container */
}
.tabulator {
width: 100%; /* Ensure table uses full container width */
font-size: 14px; /* Slightly larger font for better readability */
}
.tabulator-cell {
padding: 12px 8px; /* More padding in cells for better readability */
white-space: normal; /* Allow text to wrap */
word-break: break-word; /* Break long words if necessary */
}
.tabulator-header-filter input {
min-width: 80px; /* Ensure filter inputs are wide enough */
}
/* Ensure the table is scrollable on smaller screens */
@media (max-width: 1400px) {
.wide-container {
width: 98%;
padding: 10px;
}
.tabulator {
overflow-x: auto;
}
}
/* Add these styles for the enhanced claim rating display */
.claim-rating {
padding: 25px;
border-radius: 12px;
margin: 20px 0;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
}
.claim-rating:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.claim-rating h3 {
color: white;
margin: 0 0 15px 0;
font-size: 1.2em;
text-transform: uppercase;
letter-spacing: 1px;
}
.rating-value {
font-size: 3em;
font-weight: bold;
color: white;
margin: 10px 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.rating-text {
color: white;
font-size: 1.2em;
font-weight: 500;
margin-top: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Add these styles for mechanism sections */
.mechanism-section {
background-color: white;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-left: 4px solid var(--primary-color);
}
.mechanism-section.contradicting {
border-left-color: #dc3545;
}
.mechanism-section h4 {
color: var(--primary-color);
margin-top: 0;
font-size: 1.2em;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
.mechanism-explanation {
font-size: 1.1em;
line-height: 1.5;
margin: 15px 0;
}
.mechanism-details {
display: grid;
gap: 20px;
margin-top: 20px;
}
.mechanism-plausibility {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
}
.plausibility-reasoning {
margin-top: 10px;
font-style: italic;
color: #666;
}
/* Style for the lists section */
.lists-section {
display: flex;
gap: 30px;
margin: 15px 0;
}
.lists-section > div {
flex: 1;
}
/* Responsive design for lists section */
@media (max-width: 768px) {
.lists-section {
flex-direction: column;
gap: 15px;
}
}
/* Add these new styles after your existing CSS */
.staging-area {
background-color: white;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.staged-claims {
min-height: 100px;
max-height: 400px;
overflow-y: auto;
margin: 15px 0;
padding: 10px 0;
scrollbar-width: thin;
scrollbar-color: var(--secondary-color) #f0f0f0;
}
.staged-claims::-webkit-scrollbar {
width: 8px;
}
.staged-claims::-webkit-scrollbar-track {
background: #f0f0f0;
border-radius: 4px;
}
.staged-claims::-webkit-scrollbar-thumb {
background-color: var(--secondary-color);
border-radius: 4px;
border: 2px solid #f0f0f0;
}
.staged-claim {
display: flex;
align-items: center;
padding: 15px;
margin: 10px;
background-color: #f8f9fa;
border-radius: 6px;
border-left: 4px solid var(--primary-color);
transition: transform 0.2s ease, box-shadow 0.2s ease;
width: calc(100% - 20px);
box-sizing: border-box;
}
.staged-claim:hover {
transform: translateX(5px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.claim-text {
flex: 1;
margin-right: 20px;
line-height: 1.4;
}
.claim-actions {
display: flex;
gap: 10px;
align-items: center;
}
.action-button {
padding: 8px 12px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.2s ease;
}
.edit-button {
background-color: #ffd700;
color: #333;
}
.enhance-button {
background-color: var(--secondary-color);
color: white;
}
.delete-button {
background-color: #dc3545;
color: white;
}
.add-claim-section {
background-color: white;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.claim-input-container {
margin: 15px 0;
}
textarea#newClaimText {
width: 90%;
padding: 12px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
font-size: 16px;
resize: vertical;
min-height: 80px;
margin-bottom: 10px;
}
.file-upload-section {
margin: 20px 0;
}
.file-upload-label {
display: inline-block;
padding: 12px 20px;
background-color: var(--primary-color);
color: white;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.file-upload-label:hover {
background-color: var(--accent-color);
}
.file-upload-label input[type="file"] {
display: none;
}
.file-name {
margin-left: 10px;
color: var(--accent-color);
}
.batch-actions {
display: flex;
gap: 15px;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #eee;
}
.email-notification {
background-color: white;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.email-input-group {
margin-top: 15px;
}
.email-input-group input[type="email"] {
width: 100%;
padding: 12px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
font-size: 16px;
margin-bottom: 10px;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
}
.checkbox-group input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.checkbox-group label {
margin: 0;
cursor: pointer;
}
/* Update existing button styles */
.primary-button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 12px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
.primary-button:disabled {
background-color: #ccc;
cursor: not-allowed;
}
.primary-button:not(:disabled):hover {
background-color: var(--accent-color);
}
/* Add these styles for the new processing options section */
.processing-options {
background-color: white;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.review-type-selection {
display: flex;
flex-direction: column;
gap: 20px;
}
.review-type-selection .radio-group {
border: 1px solid #eee;
border-radius: 8px;
padding: 15px;
background-color: #f8f9fa;
}
.review-type-selection .radio-label {
background-color: white;
border: 1px solid #eee;
padding: 15px;
border-radius: 8px;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-type-selection .radio-label:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.review-type-selection .radio-label input[type="radio"]:checked + div {
color: var(--primary-color);
}
.review-type-selection button#processAllBtn {
width: 100%;
margin-top: 20px;
padding: 15px 30px;
font-size: 1.1em;
font-weight: 500;
}
/* Update existing styles to ensure consistency */
.container {
display: flex;
flex-direction: column;
gap: 20px;
}
.config-section,
.email-notification,
.add-claim-section,
.staging-area {
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Ensure proper spacing between sections */
.config-section,
.email-notification,
.add-claim-section,
.staging-area,
.processing-options {
margin: 10px 0;
}
/* Make the browse link more prominent */
.browse-link {
display: inline-block;
padding: 12px 24px;
background-color: var(--secondary-color);
color: white;
text-decoration: none;
border-radius: 8px;
margin: 20px 0;
text-align: center;
transition: background-color 0.3s ease, transform 0.2s ease;
}
.browse-link:hover {
background-color: var(--accent-color);
transform: translateY(-2px);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.container {
padding: 20px;
}
.review-type-selection {
gap: 15px;
}
.review-type-selection .radio-label {
padding: 12px;
}
.review-type-selection button#processAllBtn {
width: 100%;
padding: 12px 20px;
}
}
/* Update container and input styles */
.container {
width: 100%;
max-width: 800px;
padding: 20px;
box-sizing: border-box;
}
.batch-results-container {
width: 100%;
max-width: 1200px;
padding: 20px;
box-sizing: border-box;
}
.config-group input[type="number"],
.config-group input[type="text"],
.email-input-group input[type="email"] {
width: 100%;
max-width: 100%;
box-sizing: border-box;
padding: 8px 12px;
}
/* Make all sections consistent width */
.config-section,
.email-notification,
.add-claim-section,
.staging-area,
.processing-options {
width: 100%;
box-sizing: border-box;
margin: 10px 0;
}
.password-field {
margin: 15px 0;
}
.password-field input {
width: 100%;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.password-field input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}
.enhancement-feedback {
margin-top: 10px;
padding: 8px;
background-color: #f0f8ff;
border-left: 4px solid #4CAF50;
border-radius: 4px;
animation: fadeIn 0.3s ease-in;
}
.feedback-content {
font-size: 0.9em;
color: #333;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Update spinner styles */
.spinner {
display: none;
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s linear infinite;
margin-left: 8px;
}
.enhance-spinner {
width: 14px;
height: 14px;
border-width: 2px;
margin-left: 6px;
}
/* Update action button styles to accommodate spinner */
.action-button {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
min-width: 80px;
}
.action-button:disabled {
opacity: 0.7;
cursor: not-allowed;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Update enhancement feedback animation */
.enhancement-feedback {
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Add styles for the enhance all button */
#enhanceAllBtn {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
min-width: 150px;
}
#enhanceAllBtn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
#enhanceAllBtn .spinner {
margin-left: 8px;
}
/* Update the batch actions container */
.batch-actions {
position: relative;
}
/* Position the enhancement feedback for batch operations */
.batch-actions .enhancement-feedback {
position: absolute;
top: 100%;
left: 0;
right: 0;
margin-top: 10px;
z-index: 1;
}
/* Add progress animation */
@keyframes progress {
0% { background-position: 0 0; }
100% { background-position: 30px 0; }
}
.enhancing {
background-image: linear-gradient(
45deg,
rgba(255, 255, 255, 0.15) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.15) 50%,
rgba(255, 255, 255, 0.15) 75%,
transparent 75%,
transparent
);
background-size: 30px 30px;
animation: progress 1s linear infinite;
}
#notificationEmail.invalid {
border-color: #ff4444;
background-color: #fff8f8;
}
#notificationEmail.invalid:focus {
outline-color: #ff4444;
}
.email-input-group input[type="email"]:invalid {
border-color: #ff4444;
background-color: #fff8f8;
}
/* Add styles for the instructions section */
.instructions {
background-color: #ffffff;
border-radius: 8px;
padding: 25px;
margin-bottom: 30px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.instructions h2 {
color: var(--primary-color);
margin-bottom: 15px;
font-size: 1.8em;
}
.instructions > p {
font-size: 1.1em;
color: #444;
line-height: 1.5;
margin-bottom: 25px;
}
.instruction-step {
margin-bottom: 25px;
padding-left: 15px;
border-left: 3px solid var(--secondary-color);
}
.instruction-step:last-child {
margin-bottom: 0;
}
.instruction-step h3 {
color: var(--primary-color);
font-size: 1.3em;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.instruction-step p {
color: #555;
line-height: 1.6;
margin-bottom: 10px;
}
.instruction-step ul {
list-style-type: none;
padding-left: 20px;
margin-top: 8px;
}
.instruction-step ul li {
position: relative;
padding-left: 20px;
margin-bottom: 8px;
line-height: 1.5;
color: #555;
}
.instruction-step ul li::before {
content: "•";
color: var(--secondary-color);
position: absolute;
left: 0;
font-size: 1.2em;
}
.optional-tag {
font-size: 0.7em;
background-color: #e9ecef;
color: #666;
padding: 3px 8px;
border-radius: 12px;
font-weight: normal;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.instructions {
padding: 20px;
}
.instruction-step {
padding-left: 12px;
}
.instruction-step h3 {
font-size: 1.2em;
}
}
/* Add these styles for the instructions toggle */
.instructions-container {
margin-bottom: 30px;
}
.toggle-button {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1.1em;
transition: background-color 0.3s ease;
}
.toggle-button:hover {
background-color: var(--accent-color);
}
.toggle-icon {
transition: transform 0.3s ease;
}
.toggle-button.active .toggle-icon {
transform: rotate(180deg);
}
/* Update processing options styles for consistency */
.processing-options h3 {
color: var(--primary-color);
font-size: 1.8em;
margin-bottom: 20px;
}
.processing-options h4 {
color: var(--primary-color);
font-size: 1.3em;
margin-bottom: 15px;
font-weight: 500;
}
/* Update the radio group spacing */
.radio-group {
margin-top: 10px;
}
/* Add these new styles for the enhanced paper sections */
.papers-section {
margin: 20px 0;
}
.paper-details {
margin-top: 15px;
}
.paper-content {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
margin: 15px 0;
}
.content-list {
list-style-type: none;
padding-left: 0;
margin: 10px 0;
}
.content-list li {
padding: 8px 0;
border-bottom: 1px solid #eee;
}
.content-list li:last-child {
border-bottom: none;
}
.paper-type {
margin: 15px 0;
color: #666;
}
.paper-link {
display: inline-block;
padding: 8px 16px;
background-color: var(--primary-color);
color: white !important;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.paper-link:hover {
background-color: var(--accent-color);
text-decoration: none;
color: white !important;
}
/* Update existing mechanism-section styles */
.mechanism-section {
background-color: white;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
border-left: 4px solid var(--primary-color);
}
.mechanism-section h4 {
color: var(--primary-color);
margin-top: 0;
font-size: 1.2em;
border-bottom: 1px solid #eee;
padding-bottom: 10px;
}
/* Update claim rating styles */
.claim-rating {
padding: 25px;
border-radius: 12px;
margin: 20px 0;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease;
}
.claim-rating:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.claim-rating h3 {
color: white;
margin: 0 0 15px 0;
font-size: 1.2em;
text-transform: uppercase;
letter-spacing: 1px;
}
.rating-value {
font-size: 3em;
font-weight: bold;
color: white;
margin: 10px 0;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.rating-text {
color: white;
font-size: 1.2em;
font-weight: 500;
margin-top: 10px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Add these new styles for the browser page */
.loading {
text-align: center;
padding: 20px;
color: #666;
}
.no-results {
text-align: center;
padding: 20px;
color: #666;
font-style: italic;
}
.batch-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
}
.batch-meta {
display: flex;
flex-direction: column;
gap: 5px;
color: #666;
}
.browse-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
padding: 16px 18px;
margin-bottom: 16px;
}
.selection-summary {
color: var(--accent-color);
font-weight: 600;
}
.selection-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.selection-actions button,
.search-container button,
.batch-actions button,
.batch-actions .primary-button {
margin-top: 0;
}
.secondary-button {
background-color: var(--secondary-color);
}
.secondary-button:hover {
background-color: var(--primary-color);
}
.batch-header-row {
gap: 16px;
flex-wrap: wrap;
}
.batch-header-row .batch-meta {
flex-direction: row;
gap: 16px;
flex-wrap: wrap;
}
.batch-selector-label {
display: inline-flex;
align-items: center;
gap: 8px;
margin: 0;
font-weight: 600;
color: var(--accent-color);
}
.batch-selector-label input[type="checkbox"] {
width: auto;
height: auto;
margin: 0;
}
.table-container {
overflow-x: auto;
margin: 15px 0;
}
.view-link {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
}
.view-link:hover {
text-decoration: underline;
}
.batch-actions {
display: flex;
gap: 10px;
margin-top: 20px;
flex-wrap: wrap;
}
.batch-preview.selected {
border-color: var(--primary-color);
box-shadow: 0 0 0 2px rgba(44, 120, 115, 0.14);
background-color: #f4fbf8;
}
.danger-button {
background-color: #dc3545;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.danger-button:hover {
background-color: #c82333;
}
.error-message {
background-color: #fff3f3;
border: 1px solid #dc3545;
border-radius: 4px;
color: #dc3545;
padding: 15px;
margin: 15px 0;
text-align: center;
}
/* Add these new styles for markdown content */
.markdown-content {
line-height: 1.6;
color: var(--text-color);
}
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
margin-top: 1.5em;
margin-bottom: 0.5em;
color: var(--primary-color);
}
.markdown-content h1 { font-size: 2em; }
.markdown-content h2 { font-size: 1.8em; }
.markdown-content h3 { font-size: 1.6em; }
.markdown-content h4 { font-size: 1.4em; }
.markdown-content h5 { font-size: 1.2em; }
.markdown-content h6 { font-size: 1em; }
.markdown-content p {
margin-bottom: 1em;
}
.markdown-content strong {
font-weight: 600;
}
.markdown-content em {
font-style: italic;
}
.markdown-content ul,
.markdown-content ol {
margin-bottom: 1em;
padding-left: 2em;
}
.markdown-content li {
margin-bottom: 0.5em;
}
.markdown-content code {
background-color: #f5f5f5;
padding: 0.2em 0.4em;
border-radius: 3px;
font-family: monospace;
}
.markdown-content pre {
background-color: #f5f5f5;
padding: 1em;
border-radius: 4px;
overflow-x: auto;
margin-bottom: 1em;
}
.markdown-content blockquote {
border-left: 4px solid var(--secondary-color);
padding-left: 1em;
margin-left: 0;
margin-bottom: 1em;
color: #666;
}
.markdown-content a {
color: var(--primary-color);
text-decoration: none;
}
.markdown-content a:hover {
text-decoration: underline;
}
.markdown-content img {
max-width: 100%;
height: auto;
margin: 1em 0;
}
.markdown-content hr {
border: none;
border-top: 2px solid #eee;
margin: 2em 0;
}
.markdown-content table {
border-collapse: collapse;
width: 100%;
margin-bottom: 1em;
}
.markdown-content table th,
.markdown-content table td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
.markdown-content table th {
background-color: #f5f5f5;
}
/* Bibliometric Configuration Styles */
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
padding: 10px 15px;
background-color: #f5f5f5;
border-radius: 5px;
}
.panel-header:hover {
background-color: #e9e9e9;
}
.panel-content {
padding: 15px;
border-top: none;
}
.panel-content.hidden {
display: none;
}
.toggle-icon {
transition: transform 0.3s ease;
}
.toggle-icon.rotated {
transform: rotate(180deg);
}
.slider-group {
margin-bottom: 15px;
}
.slider-container {
display: flex;
align-items: center;
}
.slider-container input[type='range'] {
flex-grow: 1;
margin-right: 10px;
}
.slider-value {
min-width: 40px;
text-align: center;
font-weight: bold;
}
.helper-text {
font-size: 0.9em;
color: #666;
font-style: italic;
margin-top: 10px;
}
.helper-text.error {
color: #c82333;
}
.login-container {
background-color: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin: 30px auto;
width: 100%;
max-width: 400px;
animation: fadeIn 0.5s ease-out;
}
.login-container h2 {
text-align: center;
margin-bottom: 20px;
color: var(--primary-color);
}
.login-container .form-group {
margin-bottom: 20px;
}
.login-container label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.login-container input[type="password"] {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
.login-container .primary-button {
width: 100%;
padding: 12px;
margin-top: 20px;
font-size: 16px;
}
.auth-error {
background-color: #ffebee;
color: #c62828;
padding: 10px;
border-radius: 4px;
margin-bottom: 15px;
border-left: 4px solid #c62828;
font-size: 14px;
}
.auth-required-message {
text-align: center;
margin: 40px 0;
padding: 20px;
background-color: #f5f5f5;
border-radius: 8px;
border-left: 4px solid var(--primary-color);
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid #e0e0e0;
}
.nav-links {
display: flex;
gap: 15px;
}
.nav-link, .logout-link {
padding: 8px 12px;
color: var(--primary-color);
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s;
font-weight: 500;
}
.nav-link:hover, .logout-link:hover {
background-color: rgba(44, 120, 115, 0.1);
}
.logout-link {
color: #e53935;
}
.auth-nav {
display: flex;
justify-content: flex-end;
}
@media (max-width: 700px) {
.browse-toolbar,
.selection-actions,
.batch-header-row {
flex-direction: column;
align-items: stretch;
}
.batch-header-row .batch-meta {
flex-direction: column;
gap: 6px;
}
.selection-actions button,
.search-container button {
width: 100%;
}
}
.wide-container {
max-width: 1280px;
}
.page-header {
align-items: flex-start;
}
.panel {
background: #ffffff;
border: 1px solid #dde7e5;
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 8px 24px rgba(21, 51, 48, 0.04);
}
.subtle-panel {
background: #f8fbfa;
}
.status-card {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px 16px;
border-radius: 10px;
margin-bottom: 18px;
}
.warning-card {
background: #fff3d9;
border: 1px solid #f1d08d;
}
.info-card {
background: #eef6ff;
border: 1px solid #b8d3ff;
}
.error-card {
background: #fff0f0;
border: 1px solid #efb2b2;
}
.grid-two,
.grid-three {
display: grid;
gap: 20px;
}
.grid-two {
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.grid-three {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.form-row {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 16px;
}
.form-row label {
font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea {
width: 100%;
}
.inline-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
align-items: center;
}
.checkbox-row {
display: inline-flex;
align-items: center;
gap: 8px;
}
.inline-checkbox {
margin-right: 8px;
}
.hidden {
display: none !important;
}
.modal {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(18, 32, 31, 0.5);
padding: 20px;
z-index: 1000;
}
.modal-card {
width: min(520px, 100%);
background: #ffffff;
border-radius: 14px;
padding: 24px;
box-shadow: 0 18px 48px rgba(18, 32, 31, 0.24);
}
.comparison-grid {
display: grid;
gap: 16px;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.comparison-card {
border: 1px solid #dde7e5;
border-radius: 12px;
padding: 16px;
background: #fcfdfd;
}
.panel-header-row {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
}
.small-button {
padding: 6px 10px;
font-size: 13px;
}
.providers-layout {
align-items: flex-start;
}
.provider-model-grid,
.provider-task-grid,
.candidate-model-grid {
display: grid;
gap: 14px;
}
.provider-model-grid {
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.provider-task-grid,
.candidate-model-grid {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.candidate-header-copy {
display: flex;
flex-direction: column;
gap: 4px;
}
.candidate-title-row {
align-items: center;
}
.candidate-title-row h3 {
margin: 0;
}
.candidate-role-hint {
margin: 0;
max-width: 60ch;
}
.candidate-baseline-card {
border-color: #f1d08d;
box-shadow: 0 0 0 2px rgba(241, 208, 141, 0.2);
}
.candidate-reuse-card {
border-color: #cfe3df;
background: #f5faf8;
}
#reuseRetrievalBanner {
margin-top: 10px;
}
.providers-page input[type="number"] {
width: 100%;
padding: 10px;
border: 1px solid var(--secondary-color);
border-radius: 4px;
font-size: 16px;
transition: border-color 0.3s ease;
height: 40px;
box-sizing: border-box;
}
.providers-page input[type="number"]:focus {
outline: none;
border-color: var(--primary-color);
}
.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.neutral-badge {
background: #e9f3f1;
color: var(--accent-color);
border: 1px solid #cfe3df;
}
.warning-badge {
background: #fff4d6;
color: #8a5a00;
border: 1px solid #ebd08b;
}
.error-badge {
background: #ffe6e6;
color: #a12b2b;
border: 1px solid #efb2b2;
}
.provider-catalog-panel {
position: sticky;
top: 18px;
}
.provider-catalog-toolbar {
display: flex;
gap: 12px;
align-items: end;
margin-bottom: 18px;
flex-wrap: wrap;
}
.provider-search-row {
flex: 1 1 240px;
margin-bottom: 0;
}
.provider-list {
display: flex;
flex-direction: column;
gap: 14px;
}
.provider-card {
cursor: pointer;
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.provider-card:hover {
transform: translateY(-2px);
box-shadow: 0 12px 24px rgba(21, 51, 48, 0.08);
}
.provider-card.active {
border-color: var(--primary-color);
background: #f4fbf8;
box-shadow: 0 0 0 2px rgba(44, 120, 115, 0.14);
}
.provider-card h3 {
margin-bottom: 4px;
}
.provider-card-id {
margin: 0;
color: #6a7f7d;
font-size: 0.92em;
}
.provider-card-meta {
margin: 8px 0 0;
color: #3d4f4d;
}
.provider-card-badges {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: flex-end;
}
.provider-editor-panel {
display: flex;
flex-direction: column;
gap: 18px;
}
.editor-heading-row {
align-items: flex-start;
}
.editor-title-row {
align-items: center;
margin-bottom: 4px;
}
.provider-editor-status {
margin-bottom: 0;
}
.provider-chip-row {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 4px;
}
.provider-chip {
display: inline-flex;
align-items: center;
padding: 6px 10px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.7);
border: 1px solid rgba(44, 120, 115, 0.16);
color: var(--accent-color);
font-size: 13px;
font-weight: 600;
}
.provider-section-hint {
margin: 0;
}
.field-section {
border: 1px solid #e2ece9;
border-radius: 12px;
padding: 18px;
background: #fcfdfd;
}
.field-section-header {
margin-bottom: 14px;
}
.field-section-header h3 {
margin: 0 0 4px;
}
.provider-model-toolbar {
align-items: flex-start;
}
.provider-model-stack {
display: flex;
flex-direction: column;
gap: 14px;
}
.model-row {
margin-bottom: 0;
}
.model-row-heading h4 {
margin: 0 0 4px;
}
.model-row-summary {
margin: 0;
}
.model-row-duplicate {
border-color: #efb2b2;
box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.12);
}
.provider-actions-bar {
position: sticky;
bottom: 12px;
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
padding: 14px 16px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.92);
backdrop-filter: blur(8px);
border: 1px solid #dde7e5;
box-shadow: 0 10px 24px rgba(21, 51, 48, 0.08);
}
.provider-import-modal {
width: min(720px, 100%);
}
.provider-import-list {
max-height: 320px;
overflow-y: auto;
}
.provider-import-row {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 10px 12px;
border-radius: 8px;
}
.provider-import-row:hover {
background: rgba(44, 120, 115, 0.06);
}
.provider-import-meta {
display: inline-flex;
margin-left: 10px;
color: #6a7f7d;
font-size: 0.9em;
}
@media (max-width: 980px) {
.provider-catalog-panel {
position: static;
}
.provider-actions-bar {
position: static;
}
}
@media (max-width: 700px) {
.provider-catalog-toolbar,
.provider-card-badges,
.provider-actions-bar,
.editor-heading-row {
flex-direction: column;
align-items: stretch;
}
.provider-card .inline-actions,
.provider-model-toolbar .inline-actions {
width: 100%;
}
.provider-card .inline-actions button,
.provider-model-toolbar .inline-actions button,
.provider-actions-bar button,
.provider-catalog-toolbar button {
width: 100%;
}
.provider-import-row {
align-items: center;
}
}