Initial commit: establish deterministic rod-string solver stack.

Set up the C solver core, Node API orchestration, TS GUI workflow, and engineering documentation with cleaned repo hygiene for private Git hosting.

Made-with: Cursor
This commit is contained in:
2026-04-16 21:59:42 -06:00
commit 725a72a773
83 changed files with 14687 additions and 0 deletions

383
gui-ts/src/styles.css Normal file
View File

@@ -0,0 +1,383 @@
:root {
--bg: #0b1220;
--panel: #111827;
--panel-2: #0f172a;
--panel-3: #1e293b;
--border: #334155;
--border-strong: #475569;
--text: #e5e7eb;
--text-dim: #94a3b8;
--text-muted: #64748b;
--accent: #38bdf8;
--accent-2: #f59e0b;
--danger: #ef4444;
--ok: #4ade80;
}
* { box-sizing: border-box; }
html, body, #root {
margin: 0;
padding: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
font-size: 13px;
line-height: 1.4;
}
.app-shell {
max-width: 1180px;
margin: 0 auto;
padding: 12px;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.app-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: linear-gradient(90deg, #0f172a, #111827);
border: 1px solid var(--border);
border-radius: 6px 6px 0 0;
font-size: 14px;
}
.app-title { font-weight: 600; letter-spacing: 0.02em; }
.app-logo { margin-right: 8px; color: var(--accent); }
.app-header-meta { display: flex; gap: 6px; }
.pill {
display: inline-block;
padding: 2px 8px;
font-size: 11px;
letter-spacing: 0.04em;
text-transform: uppercase;
border: 1px solid var(--border-strong);
border-radius: 999px;
color: var(--text-dim);
background: var(--panel-2);
}
/* Tab strip */
.tab-strip {
display: flex;
flex-wrap: wrap;
gap: 2px;
padding: 0;
margin: 0;
background: var(--panel-2);
border-left: 1px solid var(--border);
border-right: 1px solid var(--border);
}
.tab {
padding: 8px 14px;
background: transparent;
color: var(--text-dim);
border: none;
border-right: 1px solid var(--border);
cursor: pointer;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.01em;
}
.tab:hover { color: var(--text); background: var(--panel-3); }
.tab-active {
color: var(--text);
background: var(--panel);
border-bottom: 2px solid var(--accent);
}
/* Tab body */
.tab-body {
flex: 1;
background: var(--panel);
border: 1px solid var(--border);
border-top: none;
border-radius: 0 0 6px 6px;
padding: 14px;
min-height: 520px;
display: flex;
flex-direction: column;
gap: 12px;
}
/* Fieldset */
.panel-fieldset {
border: 1px solid var(--border);
border-radius: 6px;
padding: 12px 14px;
background: var(--panel-2);
margin: 0;
}
.panel-fieldset legend {
padding: 0 6px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-dim);
}
.panel-note {
font-size: 12px;
color: var(--text-dim);
margin: 4px 0 8px 0;
}
.panel-note code { background: var(--panel-3); padding: 1px 4px; border-radius: 3px; }
/* Label+input row */
.panel-row {
display: grid;
grid-template-columns: 200px 1fr;
align-items: center;
gap: 10px;
margin-bottom: 8px;
}
.panel-row label { font-size: 12px; color: var(--text-dim); }
.panel-row-input { display: flex; flex-direction: column; gap: 3px; }
.panel-row-hint { font-size: 11px; color: var(--text-muted); }
.tab-grid { display: grid; gap: 12px; }
.tab-grid.two { grid-template-columns: 1fr 1fr; }
.tab-grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 880px) {
.tab-grid.two, .tab-grid.three { grid-template-columns: 1fr; }
.panel-row { grid-template-columns: 140px 1fr; }
}
/* Inputs */
.panel-input {
width: 100%;
padding: 6px 8px;
background: var(--panel-3);
color: var(--text);
border: 1px solid var(--border);
border-radius: 4px;
font: inherit;
font-size: 12px;
}
.panel-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 2px rgba(56,189,248,0.15);
}
.panel-input:disabled { opacity: 0.5; cursor: not-allowed; }
.panel-checkbox { display: inline-flex; align-items: center; gap: 6px; }
.panel-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.panel-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
/* Buttons */
.btn {
padding: 6px 12px;
background: var(--panel-3);
color: var(--text);
border: 1px solid var(--border-strong);
border-radius: 4px;
font: inherit;
font-size: 12px;
cursor: pointer;
white-space: nowrap;
transition: background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { background: #243448; border-color: var(--accent); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #0ea5e9; border-color: #0284c7; color: #001018; font-weight: 600; }
.btn-primary:hover { background: #38bdf8; border-color: #0ea5e9; }
.btn-danger { color: #fecaca; border-color: #7f1d1d; background: transparent; padding: 2px 8px; font-size: 11px; }
.btn-danger:hover { background: #7f1d1d; color: #fff; border-color: #991b1b; }
.btn-secondary { background: var(--panel-3); }
.button-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
margin: 4px 0 8px 0;
}
.action-row { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; }
/* Tables */
.table-scroll {
max-height: 380px;
overflow: auto;
border: 1px solid var(--border);
border-radius: 4px;
background: var(--panel-3);
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.data-table thead th {
position: sticky;
top: 0;
background: var(--panel);
text-align: left;
padding: 6px 8px;
border-bottom: 1px solid var(--border);
font-weight: 600;
color: var(--text-dim);
z-index: 1;
}
.data-table tbody td {
padding: 3px 6px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
.data-table tbody tr.row-selected td {
background: rgba(56, 189, 248, 0.16);
}
.data-table tbody tr[role="button"]:focus-visible td {
outline: 1px solid #38bdf8;
outline-offset: -1px;
background: rgba(56, 189, 248, 0.1);
}
.data-table tbody td .panel-input { padding: 3px 6px; font-size: 11px; }
.data-table .empty-row { text-align: center; color: var(--text-muted); padding: 18px; }
/* KPI grid */
.kpi-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
}
.kpi-cell {
background: var(--panel-3);
border: 1px solid var(--border);
border-radius: 4px;
padding: 8px 10px;
}
.kpi-label {
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-muted);
margin-bottom: 3px;
}
.kpi-val { font-size: 14px; font-weight: 600; color: var(--text); }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
/* Callouts */
.callout {
padding: 10px 12px;
border-radius: 4px;
background: var(--panel-3);
border-left: 3px solid var(--border-strong);
font-size: 12px;
}
.callout-info { border-left-color: var(--accent); }
.callout-error { border-left-color: var(--danger); color: #fca5a5; }
.callout-warning { border-left-color: var(--accent-2); color: #fcd34d; }
.warning-list { margin: 0; padding-left: 16px; color: #fcd34d; font-size: 12px; }
.warning-list li { margin-bottom: 3px; }
.mono-block {
font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
font-size: 11px;
background: var(--panel-3);
border: 1px solid var(--border);
border-radius: 4px;
padding: 8px;
max-height: 280px;
overflow: auto;
white-space: pre-wrap;
}
.advanced-textarea {
width: 100%;
margin-top: 8px;
padding: 8px;
font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
font-size: 11px;
background: var(--panel-3);
color: var(--text);
border: 1px solid var(--border);
border-radius: 4px;
resize: vertical;
}
/* Status bar */
.app-statusbar {
display: flex;
gap: 16px;
padding: 6px 12px;
margin-top: 8px;
font-size: 11px;
color: var(--text-dim);
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 4px;
}
/* Spinner */
.spinner {
display: inline-block;
width: 10px;
height: 10px;
border: 2px solid var(--border-strong);
border-top-color: var(--accent);
border-radius: 50%;
margin-right: 6px;
vertical-align: -2px;
animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* uPlot palette overrides for dark theme */
.uplot-host .u-legend { color: var(--text-dim); font-size: 11px; }
.uplot-host .u-wrap { background: var(--panel-3); }
/* 3D wellbore */
.wellbore-3d-wrap {
border: 1px solid var(--border);
border-radius: 6px;
background: var(--panel-3);
padding: 8px;
}
.wellbore-3d {
width: 100%;
height: auto;
display: block;
border: 1px solid var(--border);
border-radius: 4px;
background: #020617;
}
.wellbore-legend {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 8px;
font-size: 11px;
color: var(--text-dim);
}
.wellbore-legend span {
display: inline-flex;
align-items: center;
gap: 6px;
}
.wellbore-legend i {
width: 12px;
height: 12px;
border-radius: 2px;
display: inline-block;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.wellbore-kpis {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 6px;
font-size: 11px;
color: var(--text-dim);
}