IC-Computer: Schreibtisch, Fenster und Apps

Ein Computer im Spiel. Man tritt an ein Terminal, drueckt E, und bekommt eine
Oberflaeche mit Mail, Browser, Adressbuch, Kalender und weiteren Anwendungen.
Andere Resources haengen sich als App ein.

Auf ESX umgestellt:

  - Fuenf harte Abhaengigkeiten zeigten auf Resources, die es hier nicht gibt.
    Eine fehlende Abhaengigkeit verhindert den Start vollstaendig - die
    Resource waere nie hochgekommen.
  - Die Bruecke zum Framework neu geschrieben; Charakterdaten, Aktenverwaltung
    und Immobilien ausgebaut, weil die zugehoerigen Systeme fehlen.
  - pc_live_devices fehlte im Schema, wird vom Code aber gelesen. Ohne die
    Tabelle ist kein fester PC ansprechbar. Ein PC braucht ausserdem zwei
    Eintraege mit derselben Kennung: Standort in der Datenbank, Kamerafahrt in
    der config.lua.

Mail ueberarbeitet:

  - Postfaecher haengen an einer Anmeldung statt an der Person. Mehrere Leute
    koennen dasselbe Firmenpostfach gleichzeitig offen haben.
  - Ordner gehoeren zum Postfach, nicht zur Person. Eine Mail an ein geteiltes
    Postfach wird je Empfaenger einmal gespeichert; damit das Einsortieren
    trotzdem fuer alle gilt, tragen alle Kopien einer Zustellung dieselbe
    Kennung. Gelesen und geloescht bleibt persoenlich - das ist keine
    Eigenschaft der Nachricht, sondern der Person.
  - Signaturen gehoeren ebenfalls zum Postfach.
  - Kalender koennen privat, geteilt oder oeffentlich sein. Ein oeffentlicher
    Termin haengt bewusst auch an einem Postfach, sonst koennte ihn spaeter
    niemand mehr aendern oder absagen.

Neue Apps: Webhosting, Bleeter und dessen Verwaltung.

Behoben:

  - prompt(), confirm() und alert() froren das NUI ein. FiveMs CEF hat keinen
    Handler fuer die eingebauten Browserdialoge - der Aufruf oeffnet nichts und
    kehrt nie zurueck. Ersetzt durch eigene Dialoge.
  - Die Fenster tragen data-wid, keine id. Wer sie mit getElementById sucht,
    schreibt ins Leere und das Fenster bleibt leer.

Enthaelt README.md mit Einrichtung und PLUGINS.md: eine Anleitung, wie man eine
eigene App baut und einhaengt, mit vollstaendigem Beispiel von der Tabelle bis
zum Schreibtischsymbol.
This commit is contained in:
Bjoern Flessing 2026-08-09 12:02:11 +00:00
commit be502d2834
46 changed files with 13119 additions and 0 deletions

View file

@ -0,0 +1,694 @@
/* Erzeugt aus bleeter/html/style.css nicht von Hand aendern.
Jeder Selektor ist auf .bl-root gekapselt, damit Bleeters Farben und
Schrift nicht den uebrigen PC einfaerben. */
.bl-root{--bg: #020414;--panel: #061325;--panel-2: #091a31;--panel-3: #0d203a;--line: rgba(255, 255, 255, 0.08);--text: #f5f8ff;--muted: #71809b;--green: #19d889;--green-2: #00b978;--red: #ff4f5f;--gold: #f2b866;--shadow: 0 24px 80px rgba(0, 0, 0, 0.58)}
.bl-root *{box-sizing: border-box;}
.bl-root{color: var(--text);font-family: Inter, Arial, Helvetica, sans-serif}
.bl-root button,.bl-root input,.bl-root textarea{font: inherit;}
.bl-root button{cursor: pointer;}
.bl-root .hidden{display: none !important;}
.bl-root .tablet{position: relative;
width: min(1680px, 96vw);
aspect-ratio: 16 / 7.45;
min-height: 700px;
border: 13px solid #313943;
border-radius: 72px;
background: #020414;
box-shadow: var(--shadow), inset 0 0 0 5px #77818b;
overflow: hidden;}
.bl-root .tablet-glass{position: absolute;
inset: 7px;
border-radius: 58px;
pointer-events: none;
box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.22), inset 0 -24px 60px rgba(255, 255, 255, 0.04);
z-index: 5;}
.bl-root .screen{position: absolute;
inset: 22px;
border-radius: 48px;
background: var(--bg);
overflow: hidden;}
.bl-root .topbar{height: 92px;
display: grid;
grid-template-columns: 212px minmax(0, 1fr) 320px 58px 44px;
gap: 18px;
align-items: center;
padding: 0 54px;}
.bl-root .top-close{width: 40px;
height: 40px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.14);
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.66);
font-size: 16px;
line-height: 1;
cursor: pointer;
transition: background .15s, color .15s, border-color .15s;}
.bl-root .top-close:hover{background: rgba(229, 57, 53, 0.16);
border-color: rgba(229, 57, 53, 0.5);
color: #ff8a80;}
.bl-root .brand{height: 58px;
border: 0;
border-radius: 0 0 8px 8px;
padding: 0;
background: transparent;
overflow: hidden;}
.bl-root .brand img{width: 100%;
height: 100%;
display: block;
object-fit: contain;}
.bl-root .search-wrap{position: relative;}
.bl-root .global-search{width: 100%;
height: 44px;
border: 1px solid rgba(25, 216, 137, 0.38);
border-radius: 999px;
outline: 0;
padding: 0 18px;
color: var(--text);
background: rgba(5, 20, 38, 0.94);
font-size: 14px;
font-weight: 800;}
.bl-root .global-search::placeholder{color: #53627a;}
.bl-root .search-results{position: absolute;
top: 52px;
right: 0;
width: 100%;
z-index: 20;
display: grid;
gap: 8px;
padding: 8px;
border: 1px solid var(--line);
border-radius: 8px;
background: #051426;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);}
.bl-root .search-result{display: grid;
grid-template-columns: 36px minmax(0, 1fr);
gap: 10px;
align-items: center;
border: 0;
border-radius: 8px;
padding: 8px;
text-align: left;
color: var(--text);
background: rgba(255, 255, 255, 0.04);}
.bl-root .search-result img{width: 36px;
height: 36px;
border-radius: 999px;
object-fit: cover;}
.bl-root .top-profile{width: 54px;
height: 54px;
border: 2px solid var(--green);
border-radius: 999px;
padding: 0;
background: #0b1a2c;
overflow: hidden;}
.bl-root .top-profile img{width: 100%;
height: 100%;
object-fit: cover;
display: block;}
.bl-root .app-grid{height: calc(100% - 92px);
display: grid;
grid-template-columns: 86px minmax(0, 1fr) 300px;
gap: 22px;
padding: 0 54px 38px;}
.bl-root .side-nav{display: flex;
flex-direction: column;
gap: 9px;
padding-top: 20px;
padding-bottom: 8px;
overflow: hidden;}
.bl-root .nav-button{width: 64px;
height: 58px;
border: 0;
border-radius: 8px;
color: #52617a;
background: #071b34;
display: grid;
place-items: center;
gap: 3px;
transition: color 0.15s ease, background 0.15s ease;}
.bl-root .nav-button.active{color: var(--green);
background: #092541;
box-shadow: inset 3px 0 0 var(--green);}
.bl-root .nav-icon{display: grid;
place-items: center;
min-height: 22px;
font-size: 20px;
line-height: 1;}
.bl-root .nav-icon svg{width: 20px;
height: 20px;
display: block;}
.bl-root .nav-label{font-size: 9px;
font-weight: 700;
line-height: 1.05;
max-width: 58px;
overflow-wrap: anywhere;}
.bl-root .content,.bl-root .context{min-width: 0;
overflow: auto;
scrollbar-color: var(--green) transparent;
scrollbar-width: thin;}
.bl-root .content{padding: 36px 0 8px;}
.bl-root .context{padding: 36px 0 8px;}
.bl-root .section-title{display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 18px;}
.bl-root .section-title h1{margin: 0;
font-size: 25px;
line-height: 1.1;}
.bl-root .section-title p{margin: 4px 0 0;
color: var(--muted);
font-size: 13px;}
.bl-root .compose{display: grid;
grid-template-columns: 52px minmax(0, 1fr);
gap: 14px;
padding: 16px;
margin-bottom: 18px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);}
.bl-root .avatar{width: 52px;
height: 52px;
border: 2px solid var(--green);
border-radius: 999px;
object-fit: cover;
background: #12243a;}
.bl-root .compose textarea{width: 100%;
min-height: 74px;
resize: none;
border: 0;
outline: 0;
color: var(--text);
background: transparent;}
.bl-root .compose-actions{display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-top: 10px;}
.bl-root .upload-row{display: flex;
align-items: center;
gap: 10px;
min-width: 0;
flex-wrap: wrap;}
.bl-root .upload-button{border: 1px solid rgba(25, 216, 137, 0.45);
border-radius: 999px;
padding: 8px 13px;
color: var(--green);
background: rgba(25, 216, 137, 0.08);
font-size: 12px;
font-weight: 900;}
.bl-root .media-url-input{width: min(360px, 42vw);
min-height: 34px;
border: 1px solid var(--line);
border-radius: 8px;
outline: 0;
padding: 0 10px;
color: var(--text);
background: rgba(255, 255, 255, 0.04);
font-size: 12px;}
.bl-root .url-upload-row{display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px;
align-items: center;}
.bl-root .toast-layer{position: absolute;
right: 34px;
bottom: 32px;
z-index: 30;
display: grid;
gap: 10px;
width: min(360px, 30vw);
pointer-events: none;}
.bl-root .toast{padding: 13px 15px;
border: 1px solid var(--line);
border-radius: 8px;
color: var(--text);
background: rgba(6, 19, 37, 0.96);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
font-size: 13px;
font-weight: 800;}
.bl-root .toast-error{border-color: rgba(255, 79, 95, 0.55);
color: #ffd7dc;}
.bl-root .toast-success{border-color: rgba(25, 216, 137, 0.55);
color: #b8ffdf;}
.bl-root .hint{color: var(--muted);
font-size: 12px;}
.bl-root .primary-button,.bl-root .ghost-button,.bl-root .danger-button{border-radius: 999px;
padding: 10px 18px;
font-size: 13px;
font-weight: 900;}
.bl-root .primary-button{border: 0;
color: #001527;
background: var(--green);}
.bl-root .ghost-button{border: 1px solid rgba(255, 255, 255, 0.12);
color: var(--text);
background: rgba(255, 255, 255, 0.04);}
.bl-root .danger-text{border-color: rgba(255, 79, 95, 0.42);
color: #ff6d7b;}
.bl-root .danger-button{border: 1px solid rgba(255, 79, 95, 0.6);
color: var(--red);
background: rgba(255, 79, 95, 0.08);}
.bl-root .feed-list{display: grid;
gap: 18px;}
.bl-root .post-card{overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);}
.bl-root .post-head{display: grid;
grid-template-columns: 54px minmax(0, 1fr) auto;
gap: 14px;
align-items: center;
padding: 16px 18px;}
.bl-root .author-link{display: inline-flex;
align-items: center;
gap: 6px;
border: 0;
padding: 0;
color: var(--text);
background: transparent;
text-align: left;}
.bl-root .author-name{display: flex;
align-items: center;
gap: 6px;
font-weight: 900;}
.bl-root .handle{color: var(--muted);
font-size: 12px;
font-weight: 700;}
.bl-root .verified,.bl-root .staff-badge{display: inline-grid;
width: 18px;
height: 18px;
place-items: center;
border-radius: 999px;
color: #001527;
background: var(--green);
font-size: 13px;
font-weight: 1000;}
.bl-root .verified svg,.bl-root .staff-badge svg{width: 18px;
height: 18px;}
.bl-root .staff-badge{color: #fff;
background: transparent;}
.bl-root .verified + .staff-badge{margin-left: 4px;}
.bl-root .post-time{color: var(--muted);
font-size: 12px;}
.bl-root .post-body{padding: 0 18px 16px 86px;
white-space: pre-wrap;
font-size: 14px;
line-height: 1.45;}
.bl-root .post-image{display: block;
width: 100%;
max-height: 480px;
object-fit: cover;
background: #101a29;}
.bl-root .post-actions{display: flex;
gap: 22px;
align-items: center;
padding: 14px 18px;
color: var(--text);
border-top: 1px solid var(--line);}
.bl-root .action-link{border: 0;
color: var(--text);
background: transparent;
font-size: 13px;
font-weight: 400;}
.bl-root .danger-text{color: var(--red);}
.bl-root .icon-action{width: 28px;
height: 28px;
display: inline-grid;
place-items: center;
border-radius: 8px;
background: transparent;}
.bl-root .icon-action svg{width: 16px;
height: 16px;
display: block;}
.bl-root .danger-icon{border: 1px solid rgba(255, 79, 95, 0.35);
color: var(--red);}
.bl-root .danger-icon:hover{background: rgba(255, 79, 95, 0.1);}
.bl-root .comment-actions{display: flex;
align-items: center;
gap: 12px;}
.bl-root .comments-panel{display: grid;
gap: 10px;
padding: 14px 18px 18px 86px;
border-top: 1px solid var(--line);
background: rgba(0, 0, 0, 0.1);}
.bl-root .comment-form{display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 10px;}
.bl-root .comment-form input,.bl-root .market-search,.bl-root .market-sort,.bl-root .event-input{min-height: 38px;
border: 1px solid var(--line);
border-radius: 8px;
outline: 0;
padding: 0 12px;
color: var(--text);
background: rgba(255, 255, 255, 0.04);}
.bl-root .comment-item{display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
align-items: center;
padding: 10px 12px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.04);}
.bl-root .comment-item strong{display: block;
margin-bottom: 3px;}
.bl-root .market-tools{display: grid;
grid-template-columns: minmax(0, 1fr) 210px;
gap: 12px;
margin-bottom: 18px;}
.bl-root .market-post{display: grid;
grid-template-columns: minmax(0, 1fr) 110px;
gap: 12px;
align-items: start;}
.bl-root .market-compose-grid{display: grid;
grid-template-columns: minmax(0, 1fr) 220px;
gap: 10px;
margin-bottom: 10px;}
.bl-root .price-input{border-color: rgba(25, 216, 137, 0.36);}
.bl-root .market-author{display: grid;
grid-template-columns: 42px minmax(0, 1fr);
gap: 10px;
align-items: center;
margin-bottom: 12px;}
.bl-root .market-avatar-link{width: 42px;
height: 42px;
border: 0;
border-radius: 999px;
padding: 0;
background: transparent;}
.bl-root .market-avatar-link img,.bl-root .market-avatar-link span,.bl-root .market-author > img,.bl-root .market-author > span{width: 42px;
height: 42px;
border-radius: 999px;
object-fit: cover;
display: grid;
place-items: center;
border: 2px solid var(--green);
background: #102036;
font-weight: 900;}
.bl-root .market-author p{margin: 2px 0 0;}
.bl-root .market-author-name{display: flex;
align-items: center;
gap: 7px;
flex-wrap: wrap;}
.bl-root .mail-icon-button{width: 28px;
height: 28px;
border: 1px solid rgba(25, 216, 137, 0.35);
border-radius: 999px;
padding: 0;
display: inline-grid;
place-items: center;
color: var(--green);
background: rgba(25, 216, 137, 0.08);}
.bl-root .mail-icon-button svg{width: 15px;
height: 15px;}
.bl-root .market-image{width: 100%;
max-height: 260px;
object-fit: cover;
border-radius: 8px;
margin-top: 12px;}
.bl-root .market-side{display: grid;
justify-items: end;
align-content: start;
gap: 12px;}
.bl-root .price-tag{justify-self: end;
padding: 8px 12px;
border-radius: 999px;
color: #001527;
background: var(--green);
font-weight: 900;}
.bl-root .calendar-list{display: grid;
gap: 10px;}
.bl-root .day-card{border: 1px solid var(--line);
border-radius: 8px;
padding: 14px 16px;
color: var(--text);
background: var(--panel);
text-align: left;
cursor: pointer;}
.bl-root .day-card.active{border-color: rgba(25, 216, 137, 0.72);
box-shadow: inset 3px 0 0 var(--green);}
.bl-root .day-title{font-size: 18px;
font-weight: 900;}
.bl-root .event-line{margin-top: 5px;
color: var(--text);
font-size: 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;}
.bl-root .event-editor{display: grid;
gap: 12px;}
.bl-root .event-editor-head{display: flex;
justify-content: space-between;
gap: 12px;
font-weight: 900;}
.bl-root .legal-text{max-width: 980px;
white-space: pre-line;
font-size: 15px;
line-height: 1.55;}
.bl-root .profile-editor{max-width: 820px;}
.bl-root .edit-form{display: grid;
gap: 14px;
padding: 18px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);}
.bl-root .edit-form label,.bl-root .event-editor label{display: grid;
gap: 7px;
color: var(--text);
font-size: 13px;
font-weight: 900;}
.bl-root .edit-textarea{min-height: 120px;
resize: vertical;
border: 1px solid var(--line);
border-radius: 8px;
outline: 0;
padding: 11px 12px;
color: var(--text);
background: rgba(255, 255, 255, 0.04);}
.bl-root .edit-actions{display: flex;
justify-content: flex-end;
gap: 10px;}
.bl-root .page-grid{display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 22px;}
.bl-root .business-card{position: relative;
width: 100%;
min-height: 114px;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel-2);
padding: 0;
color: var(--text);
text-align: left;}
.bl-root .business-card.closed{filter: grayscale(0.8);
opacity: 0.62;}
.bl-root .business-banner{position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;}
.bl-root .business-overlay{position: relative;
min-height: 114px;
display: flex;
align-items: center;
gap: 18px;
padding: 20px 24px;
background: linear-gradient(90deg, rgba(2, 4, 20, 0.16), rgba(2, 4, 20, 0.48));}
.bl-root .business-avatar{width: 78px;
height: 78px;
border: 4px solid var(--green);
border-radius: 999px;
object-fit: cover;}
.bl-root .business-label{max-width: 74%;
padding: 12px 20px;
border-radius: 8px;
background: rgba(3, 12, 28, 0.94);}
.bl-root .business-label strong{display: flex;
align-items: center;
gap: 7px;
font-size: 23px;
line-height: 1.05;}
.bl-root .status-strip{height: 14px;
margin-bottom: 22px;
border-radius: 0 0 999px 999px;
background: var(--green);}
.bl-root .status-strip.closed{background: #586477;}
.bl-root .profile-hero{position: relative;
overflow: hidden;
min-height: 310px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);}
.bl-root .comment-author-link{border: 0;
padding: 0;
color: var(--text);
background: transparent;
font-weight: 900;}
.bl-root .profile-banner{width: 100%;
height: 210px;
object-fit: cover;
display: block;}
.bl-root .profile-banner-empty{background: linear-gradient(135deg, #082443, #0e332f);}
.bl-root .profile-meta{display: grid;
grid-template-columns: 140px minmax(0, 1fr) auto;
gap: 18px;
align-items: end;
padding: 0 24px 24px;
margin-top: -58px;}
.bl-root .profile-avatar{width: 128px;
height: 128px;
border: 4px solid var(--green);
border-radius: 999px;
object-fit: cover;
background: #102036;}
.bl-root .profile-avatar-empty{display: grid;
place-items: center;
color: var(--green);
font-size: 42px;
font-weight: 900;}
.bl-root .profile-actions{display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
flex-wrap: wrap;}
.bl-root .moderation-actions{display: inline-flex;
align-items: center;
gap: 8px;}
.bl-root .moderation-icon-button{width: 40px;
height: 40px;
border: 1px solid rgba(25, 216, 137, 0.35);
border-radius: 8px;
padding: 0;
display: inline-grid;
place-items: center;
color: var(--green);
background: rgba(25, 216, 137, 0.06);}
.bl-root .moderation-icon-button svg{width: 18px;
height: 18px;}
.bl-root .moderation-icon-button.active{color: #001527;
background: var(--green);}
.bl-root .moderation-icon-button.danger{border-color: rgba(255, 79, 95, 0.42);
color: var(--red);
background: rgba(255, 79, 95, 0.08);}
.bl-root .moderation-icon-button.danger.active{color: #fff;
background: rgba(255, 79, 95, 0.92);}
.bl-root .profile-mail-button{width: 40px;
height: 40px;}
.bl-root .profile-mail-button svg{width: 18px;
height: 18px;}
.bl-root .profile-meta h1{display: flex;
align-items: center;
gap: 8px;
margin: 0;
font-size: 32px;}
.bl-root .profile-meta p{margin: 8px 0 0;
color: var(--muted);}
.bl-root .profile-stats{display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 10px;}
.bl-root .profile-stats button{position: relative;
min-width: 48px;
height: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 0 8px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
color: var(--green);
background: rgba(255, 255, 255, 0.035);}
.bl-root .profile-stats button::after{content: attr(title);
position: absolute;
left: 50%;
bottom: calc(100% + 7px);
transform: translateX(-50%);
opacity: 0;
pointer-events: none;
border: 1px solid var(--line);
border-radius: 8px;
padding: 5px 8px;
color: var(--text);
background: #051426;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
transition: opacity 0.12s ease;}
.bl-root .profile-stats button:hover::after{opacity: 1;}
.bl-root .profile-stats svg{width: 15px;
height: 15px;
flex: 0 0 auto;}
.bl-root .profile-stats strong{color: var(--text);
font-size: 13px;
font-weight: 400;
line-height: 1.1;}
.bl-root .profile-content-section{scroll-margin-top: 18px;}
.bl-root .profile-content-section{display: grid;
gap: 12px;
margin-top: 18px;}
.bl-root .profile-content-section h2{margin: 0;
font-size: 18px;}
.bl-root .profile-event-card h3{margin-bottom: 8px;}
.bl-root .simple-list{display: grid;
gap: 12px;}
.bl-root .list-card,.bl-root .context-card{padding: 16px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel);}
.bl-root .list-card h3,.bl-root .context-card h3{margin: 0 0 6px;
font-size: 15px;}
.bl-root .list-card p,.bl-root .context-card p{margin: 0;
color: var(--muted);
font-size: 13px;
line-height: 1.35;}
.bl-root .context-title{display: flex;
align-items: center;
gap: 10px;
margin: 0 0 14px;
font-size: 16px;}
.bl-root .context-stack{display: grid;
gap: 12px;}
.bl-root .suggestion{display: grid;
grid-template-columns: 44px minmax(0, 1fr) auto;
gap: 12px;
align-items: center;}
.bl-root .suggestion-avatar{width: 42px;
height: 42px;
border-radius: 999px;
background: #8b97a8;
display: grid;
place-items: center;
font-weight: 900;}
.bl-root .mini-button{border: 0;
border-radius: 999px;
padding: 9px 15px;
color: #001527;
background: var(--green);
font-size: 12px;
font-weight: 900;}
.bl-root .social-section{display: grid;
gap: 10px;
margin-bottom: 18px;}
.bl-root .social-section h2{margin: 0;
font-size: 16px;}
.bl-root .social-row{display: flex;
justify-content: space-between;
gap: 16px;
align-items: center;}
.bl-root .social-actions{display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
justify-content: flex-end;}
.bl-root .protected-pill{border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 999px;
padding: 8px 12px;
color: var(--muted);
font-size: 12px;
font-weight: 900;}
@media (max-width: 1280px) {.bl-root .tablet{min-height: 640px;}
.bl-root .app-grid{grid-template-columns: 78px minmax(0, 1fr) 260px;
gap: 16px;
padding-inline: 36px;}
.bl-root .topbar{padding-inline: 36px;}}

View file

@ -0,0 +1,116 @@
"""
Kapselt bleeter/html/style.css fuer die Einbettung in pc-live.
Warum nicht einfach einbinden: die Datei setzt Regeln auf *, html und body.
Die wuerden den gesamten PC einfaerben Schrift, Hintergrund, alles. Also
bekommt jeder Selektor ein .bl-root davor, und die globalen Regeln werden
umgeschrieben statt uebernommen.
Rein mechanisch, damit es sich wiederholen laesst, wenn bleeter sein Aussehen
aendert: python3 nui/css/erzeuge-bleeter-css.py
"""
import io, re
import os
# Aus dem Verzeichnis dieser Datei heraus aufrufbar:
# python3 nui/css/erzeuge-bleeter-css.py
HERE = os.path.dirname(os.path.abspath(__file__))
SRC = os.path.join(HERE, '..', '..', '..', 'bleeter', 'html', 'style.css')
DST = os.path.join(HERE, 'bleeter-embedded.css')
SCOPE = '.bl-root'
# Vom Wurzelelement uebernehmen wir Farben, Schrift und Variablen aber kein
# Layout. Im Original ist .bleeter-root ein bildschirmfuellendes Overlay
# (position:fixed; inset:0). Uebernaehme man das, laege die App ueber dem
# gesamten PC, inklusive Titelleiste man kaeme nicht mehr heraus.
ROOT_SELECTORS = (':root', 'html', 'body')
ROOT_KEEP = ('color', 'font-family', 'font-size', 'font-weight',
'letter-spacing', 'line-height')
def is_root_selector(sel):
return sel in ROOT_SELECTORS or sel.startswith('.bleeter-root')
def filter_root_declarations(body):
"""Nur Variablen und Schrift behalten, alles Raeumliche verwerfen."""
kept = []
for decl in body.split(';'):
decl = decl.strip()
if not decl:
continue
prop = decl.split(':', 1)[0].strip().lower()
if prop.startswith('--') or prop in ROOT_KEEP:
kept.append(decl)
return ';'.join(kept)
def scope_selector(sel):
sel = sel.strip()
if not sel:
return sel
if is_root_selector(sel):
return SCOPE
if sel == '*':
return SCOPE + ' *'
return SCOPE + ' ' + sel
def rule(selector_list, body):
sels_raw = [s.strip() for s in selector_list.split(',')]
if any(is_root_selector(s) for s in sels_raw):
body = filter_root_declarations(body)
if not body:
return None
sels = ','.join(scope_selector(s) for s in sels_raw)
return sels + '{' + body.strip() + '}'
def scope_block(block):
parts = []
for m in re.finditer(r'([^{}]+)\{([^{}]*)\}', block, flags=re.S):
r = rule(m.group(1), m.group(2))
if r:
parts.append(r)
return '\n'.join(parts)
css = re.sub(r'/\*.*?\*/', '', io.open(SRC, encoding='utf-8').read(), flags=re.S)
out, i, n = [], 0, len(css)
while i < n:
m = re.match(r'\s*@(media|supports|keyframes|-webkit-keyframes)([^{]*)\{', css[i:])
if m:
depth, j = 1, i + m.end()
while j < n and depth:
if css[j] == '{':
depth += 1
elif css[j] == '}':
depth -= 1
j += 1
inner = css[i + m.end(): j - 1]
head = '@' + m.group(1) + m.group(2) + '{'
# Prozentschritte in keyframes sind keine Selektoren
out.append(head + (inner if 'keyframes' in m.group(1) else scope_block(inner)) + '}')
i = j
continue
m = re.match(r'([^{}]+)\{([^{}]*)\}', css[i:], flags=re.S)
if not m:
i += 1
continue
r = rule(m.group(1), m.group(2))
if r:
out.append(r)
i += m.end()
header = (
'/* Erzeugt aus bleeter/html/style.css nicht von Hand aendern.\n'
' Jeder Selektor ist auf .bl-root gekapselt, damit Bleeters Farben und\n'
' Schrift nicht den uebrigen PC einfaerben. */\n'
)
io.open(DST, 'w', encoding='utf-8').write(header + '\n'.join(out) + '\n')
print(f'{len(out)} Regeln -> {DST}')

463
nui/css/rp-ds.css Normal file
View file

@ -0,0 +1,463 @@
/*
RP Design System Unified Component Library
Additive: existierende Stile werden nicht überschrieben.
Alle Klassen tragen das Präfix .ds- um Konflikte zu vermeiden.
*/
/* ── Design Tokens (Canonical Variables) ────────────────────────────────── */
:root {
/* Brand */
--ds-accent: #1a3d6e;
--ds-accent-light: #2461b0;
--ds-accent-hover: #0f2847;
--ds-accent-pale: #e8f0fc;
/* Status */
--ds-danger: #b22222;
--ds-danger-hover: #8b0000;
--ds-danger-pale: #fdecea;
--ds-success: #2e7d32;
--ds-success-pale: #e8f5e9;
--ds-warning: #c47800;
--ds-warning-pale: #fff8e1;
--ds-info: #0277bd;
--ds-info-pale: #e1f0fa;
/* Surfaces */
--ds-bg-app: #eaecef;
--ds-bg-sidebar: #1e2a3a;
--ds-bg-header: #162032;
--ds-bg-card: #ffffff;
--ds-bg-card-alt: #f4f5f7;
--ds-bg-input: #ffffff;
--ds-bg-modal: #ffffff;
--ds-bg-overlay: rgba(0,0,0,0.55);
--ds-bg-tbl-hd: #2c3e55;
--ds-bg-tbl-alt: #f8f9fb;
/* Text */
--ds-text: #1a1f2e;
--ds-text-sub: #4a5568;
--ds-text-muted: #7a8494;
--ds-text-light: #f0f2f5;
/* Borders */
--ds-border: #c8cdd6;
--ds-border-dark: #9aa3b0;
/* Radii */
--ds-r-sm: 3px;
--ds-r: 4px;
--ds-r-md: 6px;
--ds-r-lg: 10px;
/* Shadows */
--ds-shadow-sm: 0 1px 3px rgba(0,0,0,.12);
--ds-shadow: 0 2px 8px rgba(0,0,0,.15);
--ds-shadow-lg: 0 4px 20px rgba(0,0,0,.2);
/* Typography */
--ds-font: 'Segoe UI', Arial, sans-serif;
--ds-font-mono: 'Consolas', 'Courier New', monospace;
--ds-text-xs: 11px;
--ds-text-sm: 12px;
--ds-text-base: 13px;
--ds-text-lg: 15px;
}
/* ── Utility: Text ──────────────────────────────────────────────────────── */
.ds-text-muted { color: var(--ds-text-muted); }
.ds-text-sub { color: var(--ds-text-sub); }
.ds-text-accent { color: var(--ds-accent-light); }
.ds-text-danger { color: var(--ds-danger); }
.ds-text-success { color: var(--ds-success); }
.ds-text-sm { font-size: var(--ds-text-sm); }
.ds-text-xs { font-size: var(--ds-text-xs); }
.ds-mono { font-family: var(--ds-font-mono); }
.ds-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── Buttons ────────────────────────────────────────────────────────────── */
.ds-btn {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
border: none;
border-radius: var(--ds-r);
font-family: var(--ds-font);
font-size: var(--ds-text-sm);
font-weight: 500;
cursor: pointer;
white-space: nowrap;
transition: background .15s, opacity .15s;
text-decoration: none;
line-height: 1.5;
}
.ds-btn:disabled { opacity: .5; cursor: not-allowed; }
.ds-btn-primary {
background: var(--ds-accent);
color: #fff;
}
.ds-btn-primary:hover:not(:disabled) { background: var(--ds-accent-hover); }
.ds-btn-secondary {
background: var(--ds-bg-card-alt);
color: var(--ds-text);
border: 1px solid var(--ds-border);
}
.ds-btn-secondary:hover:not(:disabled) { background: var(--ds-border); }
.ds-btn-danger {
background: var(--ds-danger);
color: #fff;
}
.ds-btn-danger:hover:not(:disabled) { background: var(--ds-danger-hover); }
.ds-btn-success {
background: var(--ds-success);
color: #fff;
}
.ds-btn-success:hover:not(:disabled) { background: #1b5e20; }
.ds-btn-ghost {
background: transparent;
color: var(--ds-accent-light);
border: 1px solid var(--ds-accent-light);
}
.ds-btn-ghost:hover:not(:disabled) { background: var(--ds-accent-pale); }
.ds-btn-sm { padding: 3px 8px; font-size: var(--ds-text-xs); }
.ds-btn-lg { padding: 8px 18px; font-size: var(--ds-text-base); }
.ds-btn-icon { padding: 5px 7px; }
/* ── Inputs ─────────────────────────────────────────────────────────────── */
.ds-input {
display: block;
width: 100%;
padding: 5px 9px;
background: var(--ds-bg-input);
border: 1px solid var(--ds-border);
border-radius: var(--ds-r);
font-family: var(--ds-font);
font-size: var(--ds-text-sm);
color: var(--ds-text);
transition: border-color .15s, box-shadow .15s;
outline: none;
}
.ds-input:focus {
border-color: var(--ds-accent-light);
box-shadow: 0 0 0 2px rgba(36,97,176,.2);
}
.ds-input::placeholder { color: var(--ds-text-muted); }
.ds-input-sm { padding: 3px 7px; font-size: var(--ds-text-xs); }
.ds-select {
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%237a8494'%3E%3Cpath d='M6 8 0 0h12z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 9px center;
padding-right: 26px;
}
.ds-textarea {
resize: vertical;
min-height: 80px;
}
/* ── Form Group ─────────────────────────────────────────────────────────── */
.ds-form-group {
display: flex;
flex-direction: column;
gap: 4px;
margin-bottom: 10px;
}
.ds-label {
font-size: var(--ds-text-xs);
font-weight: 600;
color: var(--ds-text-sub);
text-transform: uppercase;
letter-spacing: .5px;
}
/* ── Search Bar ─────────────────────────────────────────────────────────── */
.ds-search-wrap {
position: relative;
}
.ds-search-wrap i {
position: absolute;
left: 9px;
top: 50%;
transform: translateY(-50%);
color: var(--ds-text-muted);
font-size: 12px;
pointer-events: none;
}
.ds-search-wrap .ds-input {
padding-left: 28px;
}
/* ── Table ──────────────────────────────────────────────────────────────── */
.ds-table {
width: 100%;
border-collapse: collapse;
font-size: var(--ds-text-sm);
color: var(--ds-text);
}
.ds-table th {
background: var(--ds-bg-tbl-hd);
color: #fff;
font-size: var(--ds-text-xs);
font-weight: 600;
text-align: left;
padding: 7px 10px;
white-space: nowrap;
text-transform: uppercase;
letter-spacing: .4px;
}
.ds-table td {
padding: 6px 10px;
border-bottom: 1px solid var(--ds-border);
vertical-align: middle;
}
.ds-table tbody tr:nth-child(even) { background: var(--ds-bg-tbl-alt); }
.ds-table tbody tr:hover { background: var(--ds-accent-pale); }
.ds-table-sm th, .ds-table-sm td { padding: 4px 8px; }
/* ── Badge / Chip ───────────────────────────────────────────────────────── */
.ds-badge {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 7px;
border-radius: 20px;
font-size: var(--ds-text-xs);
font-weight: 600;
white-space: nowrap;
}
.ds-badge-primary { background: var(--ds-accent-pale); color: var(--ds-accent); }
.ds-badge-danger { background: var(--ds-danger-pale); color: var(--ds-danger); }
.ds-badge-success { background: var(--ds-success-pale); color: var(--ds-success); }
.ds-badge-warning { background: var(--ds-warning-pale); color: var(--ds-warning); }
.ds-badge-info { background: var(--ds-info-pale); color: var(--ds-info); }
.ds-badge-neutral { background: var(--ds-bg-card-alt); color: var(--ds-text-sub); border: 1px solid var(--ds-border); }
/* ── Alert / Notice ─────────────────────────────────────────────────────── */
.ds-alert {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 9px 12px;
border-radius: var(--ds-r-md);
font-size: var(--ds-text-sm);
border-left: 3px solid currentColor;
margin: 4px 0;
}
.ds-alert i { margin-top: 1px; flex-shrink: 0; }
.ds-alert-danger { background: var(--ds-danger-pale); color: var(--ds-danger); }
.ds-alert-success { background: var(--ds-success-pale); color: var(--ds-success); }
.ds-alert-warning { background: var(--ds-warning-pale); color: var(--ds-warning); }
.ds-alert-info { background: var(--ds-info-pale); color: var(--ds-info); }
/* ── Modal ──────────────────────────────────────────────────────────────── */
.ds-modal-overlay {
position: fixed;
inset: 0;
background: var(--ds-bg-overlay);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
backdrop-filter: blur(2px);
}
.ds-modal-overlay.hidden { display: none; }
.ds-modal {
background: var(--ds-bg-modal);
border-radius: var(--ds-r-lg);
box-shadow: var(--ds-shadow-lg);
min-width: 320px;
max-width: 600px;
width: 100%;
max-height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.ds-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: var(--ds-bg-sidebar);
color: var(--ds-text-light);
flex-shrink: 0;
}
.ds-modal-title { font-size: var(--ds-text-base); font-weight: 600; }
.ds-modal-close {
background: none;
border: none;
color: var(--ds-text-muted);
cursor: pointer;
font-size: 16px;
padding: 2px 6px;
border-radius: var(--ds-r);
}
.ds-modal-close:hover { color: #fff; }
.ds-modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.ds-modal-footer { padding: 10px 16px; border-top: 1px solid var(--ds-border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
/* ── Confirm Dialog ─────────────────────────────────────────────────────── */
.ds-confirm {
max-width: 380px;
text-align: center;
}
.ds-confirm .ds-modal-body { padding: 24px 20px 12px; }
.ds-confirm p { color: var(--ds-text-sub); margin-top: 8px; font-size: var(--ds-text-sm); }
/* ── Loading ────────────────────────────────────────────────────────────── */
.ds-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 32px;
gap: 10px;
color: var(--ds-text-muted);
font-size: var(--ds-text-sm);
}
.ds-spinner {
width: 24px; height: 24px;
border: 3px solid var(--ds-border);
border-top-color: var(--ds-accent-light);
border-radius: 50%;
animation: ds-spin .7s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }
/* ── Empty State ────────────────────────────────────────────────────────── */
.ds-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px;
gap: 8px;
color: var(--ds-text-muted);
text-align: center;
}
.ds-empty i { font-size: 32px; opacity: .4; }
.ds-empty-title { font-size: var(--ds-text-base); font-weight: 600; }
.ds-empty-sub { font-size: var(--ds-text-sm); }
/* ── Audit Hinweis ──────────────────────────────────────────────────────── */
.ds-audit-notice {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
background: rgba(194,120,0,.08);
border: 1px solid rgba(194,120,0,.25);
border-radius: var(--ds-r);
font-size: var(--ds-text-xs);
color: var(--ds-warning);
}
.ds-audit-notice i { flex-shrink: 0; }
/* ── Filter / Toolbar ───────────────────────────────────────────────────── */
.ds-toolbar {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
padding: 8px 12px;
background: var(--ds-bg-card-alt);
border-bottom: 1px solid var(--ds-border);
}
.ds-toolbar-spacer { flex: 1; }
/* ── Pagination ─────────────────────────────────────────────────────────── */
.ds-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px;
font-size: var(--ds-text-sm);
color: var(--ds-text-sub);
}
.ds-page-btn {
padding: 3px 8px;
border: 1px solid var(--ds-border);
border-radius: var(--ds-r);
background: var(--ds-bg-card);
color: var(--ds-text);
cursor: pointer;
font-size: var(--ds-text-xs);
transition: background .1s;
}
.ds-page-btn:hover:not(:disabled) { background: var(--ds-accent-pale); border-color: var(--ds-accent-light); }
.ds-page-btn:disabled { opacity: .4; cursor: default; }
.ds-page-btn.active { background: var(--ds-accent); color: #fff; border-color: var(--ds-accent); }
/* ── Section Divider ────────────────────────────────────────────────────── */
.ds-divider {
border: none;
border-top: 1px solid var(--ds-border);
margin: 10px 0;
}
.ds-section-title {
font-size: var(--ds-text-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: .6px;
color: var(--ds-text-muted);
padding: 8px 0 4px;
}
/* ── Status Dot ─────────────────────────────────────────────────────────── */
.ds-status-dot {
display: inline-block;
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.ds-status-dot.online { background: var(--ds-success); }
.ds-status-dot.offline { background: var(--ds-text-muted); }
.ds-status-dot.busy { background: var(--ds-warning); }
/* ── Card ───────────────────────────────────────────────────────────────── */
.ds-card {
background: var(--ds-bg-card);
border: 1px solid var(--ds-border);
border-radius: var(--ds-r-md);
box-shadow: var(--ds-shadow-sm);
overflow: hidden;
}
.ds-card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
border-bottom: 1px solid var(--ds-border);
background: var(--ds-bg-card-alt);
}
.ds-card-title { font-size: var(--ds-text-base); font-weight: 600; }
.ds-card-body { padding: 14px; }
/* ── Flex Utilities ─────────────────────────────────────────────────────── */
.ds-flex { display: flex; }
.ds-flex-col { display: flex; flex-direction: column; }
.ds-items-center { align-items: center; }
.ds-justify-between { justify-content: space-between; }
.ds-gap-1 { gap: 4px; }
.ds-gap-2 { gap: 8px; }
.ds-gap-3 { gap: 12px; }
.ds-gap-4 { gap: 16px; }
.ds-flex-1 { flex: 1; }
.ds-mt-1 { margin-top: 4px; }
.ds-mt-2 { margin-top: 8px; }
.ds-mb-1 { margin-bottom: 4px; }
.ds-mb-2 { margin-bottom: 8px; }
.ds-p-2 { padding: 8px; }
.ds-hidden { display: none; }
.ds-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

856
nui/css/style.css Normal file
View file

@ -0,0 +1,856 @@
/*
pc-live | Dark Modern Desktop Theme
*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--pc-vp: 88; /* viewport-% used for width & height */
--pc-fs: 13; /* base font size in px (controlled by settings) */
--accent: #00aaff;
--bg-desktop: #0d0f14;
--bg-window: #13161e;
--bg-sidebar: #0f1117;
--bg-input: #1a1d27;
--bg-hover: #1e2230;
--titlebar: #0a0c12;
--border: #222637;
--text: #d4d8e8;
--text-muted: #6b7394;
--text-dim: #3d4260;
--success: #22c55e;
--error: #ef4444;
--warning: #f59e0b;
--radius: 8px;
--radius-sm: 4px;
--shadow: 0 8px 32px rgba(0,0,0,0.6);
--font: 'Segoe UI', system-ui, sans-serif;
}
html, body {
width: 100%; height: 100%;
overflow: hidden;
font-family: var(--font);
background: transparent;
color: var(--text);
font-size: calc(var(--pc-fs) * 1px);
user-select: none;
}
/* ── SETTINGS PANEL ─────────────────────────────────────── */
#pc-settings-panel {
position: absolute;
top: 42px;
right: 8px;
z-index: 9998;
background: var(--titlebar);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 14px 16px;
min-width: 220px;
display: none;
flex-direction: column;
gap: 14px;
}
#pc-settings-panel.open { display: flex; }
.settings-group { display: flex; flex-direction: column; gap: 6px; }
.settings-group-label {
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-dim);
}
.settings-row {
display: flex;
align-items: center;
gap: 8px;
}
.settings-value {
flex: 1;
text-align: center;
font-size: 0.78rem;
font-weight: 600;
color: var(--text);
min-width: 46px;
}
.settings-btn {
width: 28px; height: 28px;
border-radius: var(--radius-sm);
background: var(--bg-hover);
border: 1px solid var(--border);
color: var(--text);
font-size: 0.78rem;
font-weight: 700;
display: flex; align-items: center; justify-content: center;
cursor: pointer;
flex-shrink: 0;
padding: 0;
transition: background 0.12s;
}
.settings-btn:hover { background: var(--border); opacity: 1; }
.settings-slider {
-webkit-appearance: none;
width: 100%;
height: 4px;
border-radius: 99px;
background: var(--border);
outline: none;
border: none;
padding: 0;
}
.settings-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 14px; height: 14px;
border-radius: 50%;
background: var(--accent);
cursor: pointer;
}
#pc-settings-btn {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 14px;
width: 22px; height: 22px;
border-radius: var(--radius-sm);
cursor: pointer;
display: flex; align-items: center; justify-content: center;
padding: 0;
transition: color 0.12s, background 0.12s;
flex-shrink: 0;
}
#pc-settings-btn:hover { color: var(--text); background: var(--bg-hover); opacity: 1; }
#pc-settings-btn.active { color: var(--accent); background: rgba(0,170,255,0.1); }
/* ── APP ROOT ────────────────────────────────────────────── */
#app { display: none; width: 100%; height: 100%; position: relative; }
#app.visible { display: block; }
/* ── DIM OVERLAY (Spielwelt bleibt sichtbar) ─────────────── */
#dim-overlay {
position: fixed; inset: 0;
background: rgba(0, 0, 0, 0.52);
pointer-events: none;
z-index: 0;
}
/* ── PC CONTAINER (schwebendes Panel) ────────────────────── */
#pc-container {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
/* width/height driven by --pc-vp (set via JS, default 88%) */
width: calc(var(--pc-vp, 88) * 1vw);
height: calc(var(--pc-vp, 88) * 1vh);
background: var(--bg-desktop);
background-image:
radial-gradient(ellipse at 20% 30%, rgba(0,170,255,0.05) 0%, transparent 60%),
radial-gradient(ellipse at 80% 80%, rgba(0,170,255,0.03) 0%, transparent 50%);
border: 1px solid var(--border);
border-radius: 10px;
box-shadow: 0 24px 80px rgba(0,0,0,0.85);
display: flex;
flex-direction: column;
overflow: hidden;
z-index: 1;
}
/* minimized: nur Titelleiste sichtbar */
#pc-container.minimized { height: auto; min-height: 0; }
#pc-container.minimized #desktop { display: none !important; }
#pc-container.minimized #pc-titlebar { border-radius: 10px; border-bottom-color: transparent; }
/* ── PC TITELLEISTE ──────────────────────────────────────── */
#pc-titlebar {
height: 38px;
background: var(--titlebar);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 12px;
gap: 8px;
flex-shrink: 0;
cursor: move;
user-select: none;
border-radius: 10px 10px 0 0;
}
.pc-title-icon { font-size: 14px; pointer-events: none; }
#pc-label {
flex: 1;
font-size: 0.78rem; font-weight: 600;
color: var(--text-muted);
pointer-events: none;
}
.pc-title-controls { display: flex; gap: 5px; }
#pc-minimize-btn,
#close-pc-btn {
width: 22px; height: 22px;
border-radius: 50%;
border: none;
cursor: pointer;
font-size: 10px;
display: flex; align-items: center; justify-content: center;
padding: 0;
transition: opacity 0.12s;
flex-shrink: 0;
}
#pc-minimize-btn:hover, #close-pc-btn:hover { opacity: 0.75; }
#pc-minimize-btn { background: #f59e0b; color: #000; }
#close-pc-btn { background: #ef4444; color: #fff; }
/* ── BOOT SCREEN ────────────────────────────────────────── */
#boot-screen {
position: absolute; inset: 0;
background: #000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
transition: opacity 0.6s ease;
}
#boot-screen.fade-out { opacity: 0; pointer-events: none; }
.boot-logo {
font-size: 2rem;
font-weight: 700;
letter-spacing: 0.2em;
color: var(--accent);
text-transform: uppercase;
margin-bottom: 2rem;
animation: pulse 1.5s ease-in-out infinite;
}
.boot-bar {
width: 280px; height: 3px;
background: var(--border);
border-radius: 99px;
overflow: hidden;
}
.boot-bar-fill {
height: 100%;
background: var(--accent);
border-radius: 99px;
width: 0%;
transition: width linear;
}
.boot-version {
margin-top: 1.5rem;
font-size: 0.7rem;
color: var(--text-muted);
letter-spacing: 0.15em;
}
/* ── DESKTOP ────────────────────────────────────────────── */
#desktop {
flex: 1;
position: relative;
overflow: hidden;
display: none;
}
#desktop.visible { display: block; }
/* ── DESKTOP ICONS ─────────────────────────────────────── */
#icon-grid {
position: absolute;
top: 20px; left: 20px; right: 20px; bottom: 64px; /* Platz für Taskbar */
display: flex;
/* Icons stapeln sich in Spalten und brechen in neue Spalten um,
sobald die Desktop-Höhe nicht mehr reicht (responsiv bei kleinem Desktop). */
flex-flow: column wrap;
align-content: flex-start;
gap: 18px 12px;
pointer-events: none; /* nur die Icons selbst klickbar, nicht die Lücken */
}
#icon-grid > .desktop-icon { pointer-events: auto; }
.desktop-icon {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
width: 72px;
cursor: pointer;
padding: 8px 4px;
border-radius: var(--radius-sm);
transition: background 0.15s;
}
.desktop-icon:hover { background: rgba(255,255,255,0.06); }
.desktop-icon:active { background: rgba(255,255,255,0.1); }
.icon-glyph {
width: 44px; height: 44px;
border-radius: var(--radius-sm);
background: var(--bg-window);
border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
font-size: 22px;
}
.icon-label {
font-size: 0.7rem;
color: var(--text);
text-align: center;
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
line-height: 1.2;
word-break: break-word;
}
/* ── TASKBAR ────────────────────────────────────────────── */
#taskbar {
position: absolute;
bottom: 0; left: 0; right: 0;
height: 40px;
background: rgba(10,12,18,0.92);
backdrop-filter: blur(12px);
border-top: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 12px;
gap: 8px;
z-index: 100;
}
#taskbar-apps {
flex: 1;
display: flex;
gap: 4px;
}
.taskbar-btn {
height: 28px;
padding: 0 10px;
border-radius: var(--radius-sm);
background: var(--bg-hover);
border: 1px solid var(--border);
color: var(--text);
cursor: pointer;
font-size: 0.72rem;
display: flex; align-items: center; gap: 5px;
transition: background 0.12s;
white-space: nowrap;
}
.taskbar-btn:hover { background: var(--border); }
.taskbar-btn.active { border-color: var(--accent); color: var(--accent); }
.taskbar-btn.minimized { opacity: 0.55; }
#taskbar-right {
display: flex; align-items: center; gap: 12px;
color: var(--text-muted);
font-size: 0.72rem;
}
#clock { font-variant-numeric: tabular-nums; }
/* ── WINDOW MANAGER ─────────────────────────────────────── */
#window-layer {
position: absolute;
inset: 0; bottom: 40px;
pointer-events: none;
}
.window {
position: absolute;
min-width: 400px;
min-height: 300px;
background: var(--bg-window);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
pointer-events: all;
overflow: hidden;
}
.window.minimized { display: none; }
.window.focused { border-color: rgba(0,170,255,0.35); box-shadow: var(--shadow), 0 0 0 1px rgba(0,170,255,0.15); }
.window-titlebar {
height: 34px;
background: var(--titlebar);
display: flex;
align-items: center;
padding: 0 10px;
gap: 8px;
cursor: move;
flex-shrink: 0;
border-bottom: 1px solid var(--border);
}
.window-title-icon { font-size: 14px; }
.window-title-text { flex: 1; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.window-controls { display: flex; gap: 5px; }
.wc-btn {
width: 22px; height: 22px;
border-radius: 50%;
border: none;
cursor: pointer;
font-size: 10px;
display: flex; align-items: center; justify-content: center;
transition: opacity 0.12s;
}
.wc-btn:hover { opacity: 0.8; }
.wc-minimize { background: #f59e0b; color: #000; }
.wc-maximize { background: #22c55e; color: #000; font-size: 11px; }
.wc-close { background: #ef4444; color: #fff; }
/* ── Resize handles ─────────────────────────────────────── */
.wc-resize { position: absolute; z-index: 10; }
.wc-resize-n { top: 0; left: 6px; right: 6px; height: 5px; cursor: n-resize; }
.wc-resize-s { bottom: 0; left: 6px; right: 6px; height: 5px; cursor: s-resize; }
.wc-resize-e { right: 0; top: 6px; bottom: 6px; width: 5px; cursor: e-resize; }
.wc-resize-w { left: 0; top: 6px; bottom: 6px; width: 5px; cursor: w-resize; }
.wc-resize-nw { top: 0; left: 0; width: 10px; height: 10px; cursor: nw-resize; }
.wc-resize-ne { top: 0; right: 0; width: 10px; height: 10px; cursor: ne-resize; }
.wc-resize-sw { bottom: 0; left: 0; width: 10px; height: 10px; cursor: sw-resize; }
.wc-resize-se { bottom: 0; right: 0; width: 10px; height: 10px; cursor: se-resize; }
/* maximized: no border-radius, fills window-layer */
.window.maximized { border-radius: 0; }
.window-body {
flex: 1;
overflow: hidden;
display: flex;
flex-direction: column;
}
/* ── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
/* ── COMMON LAYOUT ─────────────────────────────────────── */
.app-layout {
display: flex;
height: 100%;
overflow: hidden;
}
.app-sidebar {
width: 200px;
background: var(--bg-sidebar);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 8px 0;
flex-shrink: 0;
}
.sidebar-item {
padding: 8px 14px;
cursor: pointer;
font-size: 0.78rem;
color: var(--text-muted);
display: flex; align-items: center; gap: 8px;
border-radius: 0;
transition: background 0.1s, color 0.1s;
}
.sidebar-item:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-item.active { background: rgba(0,170,255,0.12); color: var(--accent); }
.sidebar-section {
padding: 12px 14px 4px;
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-dim);
}
.app-content {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 12px;
}
/* ── FORM ELEMENTS ─────────────────────────────────────── */
input, textarea, select {
background: var(--bg-input);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
font-family: var(--font);
font-size: 0.82rem;
padding: 7px 10px;
outline: none;
width: 100%;
transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
border-color: var(--accent);
}
textarea { resize: vertical; min-height: 80px; }
label {
font-size: 0.72rem;
color: var(--text-muted);
margin-bottom: 3px;
display: block;
}
.form-group { display: flex; flex-direction: column; gap: 3px; }
.form-row { display: flex; gap: 8px; }
.form-row .form-group { flex: 1; }
button {
cursor: pointer;
font-family: var(--font);
border: none;
border-radius: var(--radius-sm);
font-size: 0.78rem;
padding: 7px 14px;
transition: opacity 0.12s, background 0.12s;
}
button:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: #000; font-weight: 600; }
.btn-ghost { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: rgba(239,68,68,0.2); color: var(--error); border: 1px solid rgba(239,68,68,0.3); }
.btn-success { background: rgba(34,197,94,0.2); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.btn-sm { padding: 4px 10px; font-size: 0.7rem; }
/* ── TAGS / BADGES ─────────────────────────────────────── */
.badge {
display: inline-flex; align-items: center; justify-content: center;
min-width: 18px; height: 18px;
border-radius: 99px;
padding: 0 5px;
font-size: 0.65rem;
font-weight: 700;
background: var(--error);
color: #fff;
}
.badge-accent { background: var(--accent); color: #000; }
.badge-success { background: var(--success); color: #000; }
.tag {
display: inline-flex; align-items: center;
padding: 2px 8px;
border-radius: 99px;
font-size: 0.65rem;
font-weight: 600;
background: var(--bg-hover);
color: var(--text-muted);
border: 1px solid var(--border);
}
.tag-accent { background: rgba(0,170,255,0.12); color: var(--accent); border-color: rgba(0,170,255,0.25); }
/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 4px 0; }
/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
color: var(--text-dim);
font-size: 0.8rem;
padding: 40px;
text-align: center;
}
.empty-state .empty-icon { font-size: 2.5rem; opacity: 0.4; }
/* ── MAIL SPECIFIC ─────────────────────────────────────── */
.mail-list { display: flex; flex-direction: column; gap: 0; }
.mail-item {
padding: 10px 14px;
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: background 0.1s;
display: flex;
flex-direction: column;
gap: 3px;
}
.mail-item:hover { background: var(--bg-hover); }
.mail-item.unread { border-left: 2px solid var(--accent); }
.mail-item.active { background: rgba(0,170,255,0.08); }
.mail-from { font-size: 0.72rem; color: var(--text-muted); }
.mail-subject {
font-size: 0.8rem;
color: var(--text);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.mail-item.unread .mail-subject { color: #fff; font-weight: 700; }
.mail-date { font-size: 0.65rem; color: var(--text-dim); }
.mail-detail { padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.mail-detail-header { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.mail-detail-subject { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.mail-detail-meta { font-size: 0.72rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 2px; }
.mail-detail-body { font-size: 0.82rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
/* ── STORE SPECIFIC ─────────────────────────────────────── */
.store-statusbar {
padding: 7px 16px;
border-top: 1px solid var(--border);
font-size: 0.7rem;
color: var(--text-dim);
background: var(--bg-sidebar);
flex-shrink: 0;
text-align: center;
}
.store-statusbar strong { color: var(--text-muted); }
.store-card--installed { border-color: rgba(0,170,255,0.2); }
.store-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}
.store-card {
background: var(--bg-sidebar);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px;
display: flex;
flex-direction: column;
gap: 8px;
transition: border-color 0.15s;
}
.store-card:hover { border-color: var(--border); }
.store-card-icon { font-size: 1.8rem; }
.store-card-name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.store-card-desc { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; flex: 1; }
.store-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.store-price { font-size: 0.72rem; color: var(--text-muted); }
.store-price.free { color: var(--success); }
/* ── BROWSER SPECIFIC ─────────────────────────────────────── */
.browser-chrome {
padding: 8px 10px;
background: var(--titlebar);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.browser-chrome input {
flex: 1;
font-size: 0.78rem;
height: 26px;
padding: 0 10px;
}
.browser-nav-btn {
width: 26px; height: 26px;
background: var(--bg-hover);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-muted);
display: flex; align-items: center; justify-content: center;
cursor: pointer;
font-size: 11px;
flex-shrink: 0;
}
.browser-nav-btn:hover { color: var(--text); }
.browser-viewport {
flex: 1;
overflow-y: auto;
padding: 24px 32px;
}
.browser-viewport.browser-viewport-external {
padding: 0;
overflow: hidden;
}
.browser-iframe {
width: 100%;
height: 100%;
border: none;
display: block;
background: #fff;
}
.browser-address-input {
flex: 1;
font-size: 0.78rem;
height: 26px;
padding: 0 10px;
}
.browser-go-btn {
font-weight: bold;
color: var(--accent) !important;
}
.browser-404 {
display: flex; flex-direction: column;
align-items: center; justify-content: center;
height: 100%;
gap: 12px;
color: var(--text-dim);
}
.browser-404 h2 { font-size: 2rem; color: var(--error); }
.browser-404 p { font-size: 0.82rem; }
/* IC Page styles */
.ic-page h1 { font-size: 1.5rem; margin-bottom: 6px; color: #fff; }
.ic-page h2 { font-size: 1.1rem; margin: 16px 0 6px; color: var(--text); }
.ic-page p { font-size: 0.82rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 8px; }
.ic-page .article {
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px;
margin-bottom: 12px;
background: var(--bg-sidebar);
}
.ic-page .article-date { font-size: 0.65rem; color: var(--text-dim); margin-bottom: 4px; }
.ic-home-hero {
text-align: center;
padding: 40px 0;
}
.ic-home-hero h1 { font-size: 2rem; color: var(--accent); margin-bottom: 8px; }
.ic-home-links { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.ic-link-card {
background: var(--bg-sidebar);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 12px 18px;
cursor: pointer;
font-size: 0.8rem;
color: var(--text);
transition: border-color 0.15s, background 0.15s;
text-decoration: none;
}
.ic-link-card:hover { border-color: var(--accent); background: var(--bg-hover); }
/* ── SEARCH ──────────────────────────────────────────────── */
.search-bar {
display: flex; gap: 8px; align-items: center;
margin-bottom: 4px;
}
.search-bar input { flex: 1; }
/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.2s ease forwards; }
/* ── MAIL: folder sidebar items ─────────────────────────── */
.sidebar-folder-item { justify-content: space-between; }
.sidebar-folder-del {
background: none; border: none; color: var(--text-dim);
cursor: pointer; font-size: 10px; padding: 0 2px; line-height:1;
opacity: 0;
}
.sidebar-folder-item:hover .sidebar-folder-del { opacity: 1; }
.mail-move-select {
font-size: .65rem; padding: 1px 4px; cursor: pointer;
background: var(--bg-input); border: 1px solid var(--border);
color: var(--text-muted); border-radius: var(--radius-sm);
max-width: 120px;
}
/* ── CALENDAR ────────────────────────────────────────────── */
.cal-month-header {
padding: 10px 14px;
font-weight: 700; font-size: .82rem; color: var(--text);
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.cal-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
flex: 1;
overflow-y: auto;
border-bottom: 1px solid var(--border);
}
.cal-header-cell {
text-align: center; font-size: .65rem; font-weight: 600;
color: var(--text-muted); padding: 4px 0;
border-bottom: 1px solid var(--border);
background: var(--bg-sidebar);
}
.cal-cell {
min-height: 54px; padding: 3px 4px;
border-right: 1px solid var(--border);
border-bottom: 1px solid var(--border);
cursor: pointer; transition: background .1s;
}
.cal-cell:hover { background: var(--bg-hover); }
.cal-cell-empty { background: var(--bg-sidebar); cursor: default; }
.cal-today { background: rgba(0,170,255,.08); }
.cal-today .cal-day-num { color: var(--accent); font-weight: 700; }
.cal-day-num { font-size: .68rem; color: var(--text-muted); }
.cal-dots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 2px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cal-event-item {
padding: 6px 8px; border-radius: var(--radius-sm);
background: var(--bg-input);
font-size: .75rem;
}
/* Schild am Termin: privat, Postfach oder öffentlich */
.cal-badge {
font-size: 0.6rem;
padding: 1px 6px;
border-radius: 8px;
border: 1px solid var(--border);
color: var(--text-dim);
white-space: nowrap;
flex-shrink: 0;
}
.cal-edit-form {
background: var(--bg-input); border: 1px solid var(--border);
border-radius: var(--radius); padding: 12px;
}
/* ── ADDRESSBOOK ─────────────────────────────────────────── */
.contact-avatar {
width: 34px; height: 34px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: .78rem; color: #fff; flex-shrink: 0;
}
.contact-avatar-lg {
width: 56px; height: 56px; font-size: 1.2rem; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-weight: 700; color: #fff; flex-shrink: 0;
}
.contact-field-group { display: flex; flex-direction: column; gap: 8px; }
.contact-field {
display: flex; flex-direction: column; gap: 2px;
background: var(--bg-input); border-radius: var(--radius-sm);
padding: 8px 10px;
}
.contact-field-label { font-size: .68rem; color: var(--text-dim); }
.contact-field-value { font-size: .8rem; color: var(--text); word-break: break-all; }
/* ── Interaktionsmodus (PC transparent, Fokus im Spiel) ─────────── */
#pc-interact-hint {
display: none;
position: absolute;
top: 14px; left: 50%;
transform: translateX(-50%);
z-index: 9999;
background: rgba(10,14,22,0.85);
color: #e8eef7;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 8px;
padding: 8px 16px;
font-size: 0.85rem;
box-shadow: 0 6px 24px rgba(0,0,0,0.5);
pointer-events: none;
white-space: nowrap;
}
#pc-interact-hint b { color: #4aa3ff; }
#app.interact-mode #pc-container {
opacity: 0.18;
pointer-events: none; /* Klicks/Interaktion gehen an das Spiel */
transition: opacity 0.2s ease;
}
#app.interact-mode #dim-overlay { opacity: 0 !important; } /* Spielwelt voll sichtbar */
#app.interact-mode #pc-interact-hint { display: block; }
/* 👁-Button im selben Stil wie das ⚙-Settings-Icon oben */
#pc-interact-btn {
background: transparent;
border: none;
color: var(--text-dim);
font-size: 14px;
width: 22px; height: 22px;
border-radius: var(--radius-sm);
cursor: pointer;
display: flex; align-items: center; justify-content: center;
padding: 0;
transition: color 0.12s, background 0.12s;
flex-shrink: 0;
}
#pc-interact-btn:hover { color: var(--text); background: var(--bg-hover); opacity: 1; }
#pc-interact-btn.active { color: var(--accent); background: rgba(0,170,255,0.1); }