Files
omega-ai-proxy/proxy/ui/app.css
T
Stephan RehfeldandClaude Opus 5.5 6241d9334c Anmeldung mit Authenticator-App (TOTP) und Passkeys
- Konto & Sicherheit: Passkeys anlegen und entfernen; Authenticator-App mit
  QR-Code und Konfigurationsschlüssel einrichten, mit erstem Code bestätigen
- Anmeldeseite: Benutzername, dann Passkey, Code aus der App oder Passwort
  (LDAP bzw. Testbetrieb); Name und Weg werden im Browser gemerkt
- Jeder TOTP-Code gilt nur einmal; nach fünf Fehlversuchen je Konto eine
  Viertelstunde Pause; TOTP-Geheimnisse mit dem Hauptschlüssel verschlüsselt
- Passkeys über webauthn-rs, gebunden an ui.public_url
  (https://ai-bme.efi.ohmportal.de), Nutzerverifikation verlangt
- Administratoren setzen beides zurück; DSGVO-Auskunft und -Löschung
  berücksichtigen Passkeys und Authenticator-App

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:57:22 +01:00

269 lines
18 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Omega AI Proxy – Oberfläche. Farben, Schriften und Bausteine nach den UI-Mockups.
Alle Schriften liegen im Proxy; der Browser lädt nichts von außen. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/omega/assets/ibm-plex-sans-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(/omega/assets/ibm-plex-sans-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/omega/assets/ibm-plex-sans-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(/omega/assets/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(/omega/assets/ibm-plex-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url(/omega/assets/ibm-plex-mono-600.woff2) format('woff2'); }
:root {
--bg: #141518;
--panel: #1b1c20;
--panel-2: #17181c;
--sunken: #131417;
--line: #2c2f35;
--line-2: #383b43;
--line-3: #34373e;
--hover: #26282d;
--raised: #22242a;
--text: #e6e7ea;
--text-2: #c3c7ce;
--text-3: #b9bec6;
--muted: #9aa0aa;
--cap: #8d939d;
--accent: #f08a3c;
--accent-2: #ffb27a;
--accent-bg: #3a2a1e;
--accent-text: #ffe2c6;
--accent-ink: #1a1209;
--good: #9fd69a;
--good-bg: #17241a;
--bad: #f0a098;
--bad-bg: #2e1a18;
--ollama: #5fb4ff;
--llama: #b48cf0;
--vllm: #ffd166;
--sans: 'IBM Plex Sans', system-ui, sans-serif;
--mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
h1, h2, h3 { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.cap { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cap); }
.loading { padding: 40px; color: var(--muted); }
.sr-only { position: absolute; left: -9999px; }
/* Gerüst mit Seitenleiste */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 240px; max-width: 280px; background: var(--panel); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 24px; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.logo { width: 34px; height: 34px; border-radius: 8px; background: #2c2117; color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; flex: 0 0 auto; }
.logo.big { width: 44px; height: 44px; border-radius: 10px; font-size: 26px; }
.brand-name { display: flex; flex-direction: column; }
.brand-name b { font-size: 15px; font-weight: 600; }
.brand-name span { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .cap { padding: 14px 10px 6px; }
.nav .cap:first-child { padding-top: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.on { background: var(--accent-bg); color: var(--accent-text); }
.nav svg { flex: 0 0 auto; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-2); flex: 0 0 auto; }
.me-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me-name b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.me-name span { font-size: 12px; color: var(--muted); }
.menu-toggle { display: none; }
/* Kopf einer Seite */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { margin-top: 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Bausteine */
.btn { font: 500 14px var(--sans); min-height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-3); background: var(--raised); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--hover); color: var(--text); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn.danger { border-color: #5a2c28; color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn.wide { width: 100%; min-height: 44px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.small { width: 32px; }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row.top { align-items: flex-start; }
.grow { flex: 1 1 320px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h2 { font-size: 15px; font-weight: 600; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.kpis { display: flex; flex-wrap: wrap; gap: 12px; }
.kpi { flex: 1 1 180px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi > span:first-child { font-size: 13px; color: var(--muted); }
.kpi .value { font-family: var(--mono); font-size: 26px; font-weight: 500; }
.kpi .value.accent { color: var(--accent); }
.kpi .value.bad { color: var(--bad); }
.kpi .sub { font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--raised); color: var(--text-2); }
.chip.ollama { background: rgba(95,180,255,.14); color: #8ccaff; }
.chip.llamacpp { background: rgba(180,140,240,.16); color: #cdb4f6; }
.chip.vllm { background: rgba(255,209,102,.14); color: #ffd98a; }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.accent { background: var(--accent-bg); color: var(--accent-text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.good { background: var(--good); }
.dot.accent { background: var(--accent); }
.dot.bad { background: var(--bad); }
.status { display: inline-flex; align-items: center; gap: 6px; }
.empty { color: var(--muted); padding: 8px 0; }
/* Tabellen */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }
td.wrap { white-space: normal; }
tr.dim td { color: var(--muted); }
td .actions { justify-content: flex-end; flex-wrap: nowrap; }
/* Formulare */
form { display: flex; flex-direction: column; gap: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.field-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 13px; color: var(--text-3); }
.hint { font-size: 12px; color: var(--muted); }
.field { font: 14px var(--sans); width: 100%; height: 40px; padding: 0 12px; background: var(--sunken); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); }
textarea.field { height: auto; min-height: 72px; padding: 10px 12px; resize: vertical; }
.field:focus { outline: none; border-color: var(--accent); }
.field.mono { font-family: var(--mono); }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { padding: 0 6px; font-size: 13px; color: var(--text-3); }
.check { display: flex; align-items: center; gap: 8px; }
/* Meldungen */
.notice { border-radius: 8px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--panel-2); display: flex; gap: 10px; align-items: flex-start; }
.notice.error { border-color: #5a2c28; background: var(--bad-bg); color: var(--bad); }
.notice.ok { border-color: #2b4430; background: var(--good-bg); color: var(--good); }
.notice.warn { border-color: #5a4126; background: #2a2017; color: var(--accent-text); }
.secret { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--sunken); border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; }
.secret code { font-family: var(--mono); font-size: 14px; word-break: break-all; flex: 1 1 280px; }
/* Fortschritt und Speicher */
.meter { display: flex; flex-direction: column; gap: 5px; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.meter-head .mono { color: var(--text-2); }
.track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.track > div { height: 6px; border-radius: 3px; background: var(--accent); }
.track > div.full { background: var(--bad); }
.membar { display: flex; gap: 2px; height: 34px; border-radius: 6px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); padding: 2px; }
.membar > div { border-radius: 4px; font-family: var(--mono); font-size: 12px; font-weight: 500; display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; min-width: 3px; }
.membar .ollama { background: var(--ollama); color: #0b1a29; }
.membar .llamacpp { background: var(--llama); color: #1c1029; }
.membar .vllm { background: var(--vllm); color: #2a1f05; }
.membar .loading { opacity: .55; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.swatch.ollama { background: var(--ollama); }
.swatch.llamacpp { background: var(--llama); }
.swatch.vllm { background: var(--vllm); }
.swatch.free { border: 1px solid var(--line-2); }
/* Diagramme */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; border-bottom: 1px solid var(--line-2); }
.chart > div { flex: 1; min-height: 1px; border-radius: 3px 3px 0 0; background: #6b4a2c; }
.chart > div.now { background: var(--accent); }
.chart-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.events li { display: flex; gap: 12px; }
.events .mono { color: var(--muted); flex: 0 0 auto; }
details summary { cursor: pointer; color: var(--text-2); }
pre.settings { margin: 8px 0 0; background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: 12px var(--mono); color: var(--text-2); white-space: pre-wrap; }
/* Anmeldung */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-panel { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--panel); border-right: 1px solid var(--line); }
.login-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 28px; }
.login-box h1 { font-size: 24px; font-weight: 600; }
.login-public { flex: 999 1 560px; min-width: 0; padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.privacy { margin: 0; display: flex; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
/* Schmale Bildschirme: Seitenleiste wird zur Kopfleiste mit Menü */
@media (max-width: 860px) {
.side { flex: 1 1 100%; max-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; gap: 12px; }
.side .brand { justify-content: space-between; }
.menu-toggle { display: inline-flex; }
.side .nav, .side .me { display: none; }
.side.open .nav, .side.open .me { display: flex; }
.main { padding: 20px 16px 40px; }
.login-public { padding: 32px 16px; }
}
/* Umschalter, Wochentage, Modellauswahl, Werkzeugleiste */
.label { font-size: 13px; color: var(--text-3); }
.stack.small { gap: 10px; }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line-3); border-radius: 7px; background: var(--sunken); }
.seg { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 10px; border-radius: 5px; font-size: 13px; color: var(--text-2); cursor: pointer; text-align: center; }
.seg:hover { color: var(--text); }
.seg.on { background: var(--accent-bg); color: var(--accent-text); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.day { font: 500 13px var(--sans); min-width: 44px; min-height: 36px; border-radius: 6px; border: 1px solid var(--line-3); background: var(--raised); color: var(--text-2); cursor: pointer; }
.day:hover { background: var(--hover); }
.day[aria-pressed="true"] { background: var(--accent-bg); border-color: #8a5a32; color: var(--accent-text); }
.model-picker { display: flex; flex-direction: column; gap: 10px; }
.model-picker fieldset { gap: 6px; }
.model-picker .check { gap: 10px; min-height: 28px; }
.model-picker .hint { margin-left: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar input[type=search] { flex: 1 1 260px; max-width: 420px; }
input[type=date].field, input[type=time].field, input[type=datetime-local].field { color-scheme: dark; }
/* Wochenkalender */
.cal-card { overflow-x: auto; }
.cal { display: grid; grid-template-columns: 40px repeat(7, minmax(92px, 1fr)); column-gap: 6px; min-width: 720px; }
.cal-corner { height: 32px; }
.cal-day { height: 32px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.cal-day.today { color: var(--accent); font-weight: 600; }
.cal-hours { position: relative; font-size: 11px; color: var(--muted); }
.cal-hours span { position: absolute; right: 4px; transform: translateY(-1px); }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 43px, var(--raised) 43px 44px); }
.ev { position: absolute; box-sizing: border-box; min-width: 0; border-radius: 6px; padding: 4px 6px; font: 11px/1.3 var(--sans); text-align: left; overflow: hidden; display: flex; flex-direction: column; gap: 1px; cursor: pointer; z-index: 1; }
.ev:hover { filter: brightness(1.2); }
.ev .ev-kind { font-weight: 600; }
.ev .ev-by { opacity: .75; }
.ev.pin, .swatch.ev-pin { background: #2c2117; border: 1px solid #8a5a32; color: #ffe2c6; }
.ev.exclusive, .swatch.ev-exclusive { background: rgba(180,140,240,.16); border: 1px solid rgba(180,140,240,.55); color: #e3d6fb; }
.ev.window, .swatch.ev-window { background: rgba(79,209,197,.12); border: 1px solid rgba(79,209,197,.5); color: #b8f0ea; }
.toolbar .legend { margin-left: auto; }
/* Ein Feld über zwei Spalten, sobald es zwei gibt */
@media (min-width: 560px) { .fields .wide { grid-column: span 2; } }
/* Zeitraum im Kalender aufziehen */
.cal-col { cursor: crosshair; touch-action: none; user-select: none; }
.cal-sel { position: absolute; left: 2px; right: 2px; border: 1px dashed var(--accent); border-radius: 6px; background: var(--accent-bg); color: var(--accent-text); font: 11px var(--mono); padding: 3px 5px; pointer-events: none; z-index: 2; }
button.chip { border: 0; cursor: pointer; font: inherit; }
/* Overlay */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(0,0,0,.55); overflow-y: auto; }
.dialog { width: 100%; max-width: 560px; box-shadow: 0 18px 48px rgba(0,0,0,.5); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; }
/* Wartung und Rechner außerhalb des Pools */
.ev.maintenance, .swatch.ev-maintenance { background: repeating-linear-gradient(135deg, rgba(240,120,110,.16) 0 6px, rgba(240,120,110,.06) 6px 12px); border: 1px solid rgba(240,120,110,.55); color: #ffd3cd; }
.card.out-of-pool { border-style: dashed; }
/* Einrichten der Authenticator-App: QR-Code immer schwarz auf weiß, damit Kameras ihn lesen */
.qr { width: 220px; height: 220px; padding: 8px; background: #fff; border-radius: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-size: 15px; letter-spacing: .04em; padding: 6px 10px; border-radius: 6px; background: var(--raised); word-break: break-all; }