Initial portal commit: landing + 9 AI-powered apps

Apps:
- dwg-rooms: extract room numbers from DWG/DXF
- dwg-counting: count symbols in PDF drawings (OpenCV template matching)
- contract-check: review PDF contracts against a checklist (Claude vision + Tesseract OCR fallback)
- email-drafter: bullet notes → polished Czech/English business emails
- invoice-extractor: PDF/image invoice → structured data → Excel
- translator: Czech-first translator across 19 languages with tone control
- vv-check: find inconsistent unit prices across VV sheets in one workbook
- vv-compare: diff original vs new VV files (changes / added / removed)
- feature-request: portal users submit ideas + sample files

Infrastructure:
- LiteLLM gateway with per-app virtual keys + budgets
- Langfuse observability
- Geist font, shared theme, cross-subdomain back link + theme sync via cookie/URL
- Caddy reverse proxy on *.klas.chat
This commit is contained in:
Ondřej Glaser
2026-05-13 15:25:04 +02:00
commit 48cef99257
139 changed files with 20171 additions and 0 deletions

View File

@@ -0,0 +1,201 @@
/* Email-drafter specific styles */
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px 18px;
margin-bottom: 24px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-full { grid-column: 1 / -1; }
@media (max-width: 720px) {
.form-grid { grid-template-columns: 1fr; }
}
.form-label {
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 8px;
}
.form-label-hint {
font-size: 11px;
font-weight: 400;
color: var(--text-quaternary);
text-transform: lowercase;
}
.form-input, .form-select, .form-textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border-default);
background: var(--bg-primary);
color: var(--text-primary);
border-radius: 8px;
font-size: 14px;
font-family: inherit;
line-height: 1.5;
transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }
.reply-toggle {
background: transparent;
border: 1px dashed var(--border-strong);
color: var(--text-secondary);
padding: 10px 14px;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
font-family: inherit;
text-align: left;
width: fit-content;
display: flex;
align-items: center;
gap: 8px;
transition: border-color .15s, color .15s;
}
.reply-toggle:hover { border-color: var(--primary); color: var(--primary); }
.reply-toggle[aria-expanded="true"] .reply-toggle-icon { transform: rotate(45deg); }
.reply-toggle-icon {
display: inline-block;
font-size: 16px;
line-height: 1;
transition: transform .2s;
}
.reply-panel { margin-top: 10px; }
.run-row {
display: flex;
align-items: center;
gap: 14px;
padding-top: 16px;
border-top: 1px solid var(--border-default);
flex-wrap: wrap;
}
.btn-lg { padding: 12px 24px; font-size: 14px; font-weight: 600; }
.run-hint { font-size: 13px; color: var(--text-tertiary); }
.processing-sub {
font-size: 13px;
color: var(--text-tertiary);
margin: 8px auto 0;
max-width: 360px;
}
/* Output email card */
.email-card {
background: var(--card);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
padding: 18px 20px;
margin-top: 16px;
box-shadow: var(--shadow-card);
}
.email-field { display: flex; flex-direction: column; gap: 8px; }
.email-field-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.email-field-label {
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--text-tertiary);
}
.email-subject-input {
width: 100%;
padding: 10px 12px;
border: 1px solid transparent;
background: var(--bg-secondary);
color: var(--text-primary);
border-radius: 8px;
font-size: 15px;
font-weight: 600;
font-family: inherit;
}
.email-subject-input:focus {
outline: none;
border-color: var(--primary);
background: var(--bg-primary);
}
.email-body-textarea {
width: 100%;
padding: 14px 16px;
border: 1px solid transparent;
background: var(--bg-secondary);
color: var(--text-primary);
border-radius: 8px;
font-size: 14px;
font-family: inherit;
line-height: 1.6;
resize: vertical;
min-height: 280px;
white-space: pre-wrap;
}
.email-body-textarea:focus {
outline: none;
border-color: var(--primary);
background: var(--bg-primary);
}
.email-divider {
height: 1px;
background: var(--border-default);
margin: 16px 0;
}
.email-actions {
display: flex;
justify-content: flex-end;
margin-top: 16px;
}
.btn-copy {
background: transparent;
border: 1px solid var(--border-default);
color: var(--text-secondary);
padding: 4px 10px;
border-radius: 6px;
font-size: 12px;
cursor: pointer;
font-family: inherit;
transition: all .15s;
}
.btn-copy:hover {
border-color: var(--primary);
color: var(--primary);
}
.btn-copy.copied {
background: rgba(34, 197, 94, 0.12);
border-color: #16a34a;
color: #15803d;
}
/* Back link (shared with other apps) */
.back-link {
display: inline-flex; align-items: center; gap: 6px;
padding: 6px 12px 6px 10px; border-radius: 8px;
font-size: 13px; font-weight: 500; color: var(--text-tertiary);
text-decoration: none; border: 0.5px solid var(--border-default);
background: var(--bg-primary); flex-shrink: 0;
transition: color .15s, border-color .15s, background .15s;
}
.back-link:hover {
color: var(--primary); border-color: var(--primary);
background: color-mix(in srgb, var(--primary) 6%, var(--bg-primary));
}
.back-link svg { opacity: 0.8; }
@media (max-width: 640px) {
.back-link span { display: none; }
.back-link { padding: 6px; }
}