
      :root{
        --bg:#0b0e13; --green:#54c9ee; --panel:rgba(11,14,19,.94); --ink:rgba(255,255,255,.9);
        --barH:12px;            /* EINHEITLICHE Hhe */
        --barW:200px;           /* EINHEITLICHE Breite */
        --fs:12px;              /* EINHEITLICHE Schriftgre */
      }
      *{box-sizing:border-box}
      html,body{height:100%;margin:0;background:var(--bg);color:var(--green);font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace}
      #rain{position:fixed;inset:0;z-index:0}
      .wrap{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px}
      .topgrid {
        display: grid;
        grid-template-columns: 1.1fr 1fr; /* links breiter fr htop */
        gap: 18px;
        align-items: start;
      }
      /* Linke Spalte bndig links halten */
      .left  { justify-self: start; }
      /* Rechte Spalte nach rechts */
      .right { justify-self: end; }
      /* htop-Box auf volle Spaltenbreite ziehen & keine Extramargen */
      #htop.box { width: 100%; margin: 0; }
      /* optional: Boxen haben manchmal Standardmargen  hier sicherheitshalber nullen */
      .box { margin: 0; }
      .box,.panel{background:var(--panel);border:1px solid rgba(255,255,255,.08);border-radius:10px;box-shadow:0 10px 40px rgba(0,0,0,.6)}
      .box{padding:12px;min-height:180px}
      .panel{width:100%;padding:14px}
      .brand{display:flex;flex-direction:column;align-items:center;gap:6px}
      .title{letter-spacing:2px;font-size:14px;opacity:.9}
      .motd{min-height:48px;color:rgba(255,255,255,.82);display:flex;align-items:center;justify-content:center;letter-spacing:.3px;transition:opacity 1s ease;margin-top:10px}
      .term{height:400px;overflow:hidden;border-radius:8px;padding:14px;background:rgba(0,0,0,.35);box-shadow:inset 0 0 30px rgba(0,0,0,.6);line-height:1.42}
      /* htop look */
      .grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px 14px;margin-bottom:8px}
      .row{
        white-space:nowrap;
        font-size:var(--fs);
        color:rgba(255,255,255,.85);
      }
      .lab{
        display:inline-block;
        width:48px;
        opacity:.85;
        font-size:var(--fs);
      }
      .hbar{
        position:relative;
        display:inline-block;
        vertical-align:middle;
        height:var(--barH);
        border:1px solid rgba(255,255,255,.2);
        border-radius:2px;
        overflow:hidden;
        background:rgba(255,255,255,.07);
        width:120px;
        line-height:0;
      }
      .hbar > i{
        position:absolute;
        left:0; top:0; bottom:0;
        background:#54c9ee;
        transition:width .25s linear;
      }
      .seg{
        display:inline-block;
        height:100%;
        vertical-align:top;
        transition:width .25s linear;
        min-width:0
      }
      .c-us{background:#54c9ee}.c-sy{background:#ff6b6b}.c-ni{background:#ffd166}.c-wa{background:#ff9f43}
      .c-hi{background:#c77dff}.c-si{background:#6af1ff}.c-st{background:rgba(255,255,255,.45)}.c-id{background:rgba(255,255,255,.18)}
      .meta{
        margin:6px 0 8px 0;
        text-align:center;
        color:rgba(255,255,255,.85);
        font-size:var(--fs);
      }
      .fill{
        position:relative;
        display:inline-block;
        height:var(--barH);
        border:1px solid rgba(255,255,255,.2);
        border-radius:2px;
        overflow:hidden;
        background:rgba(255,255,255,.07);
        width:160px;
        vertical-align:middle
      }
      .fill > i{position:absolute;left:0;top:0;bottom:0;background:#54c9ee;transition:width .25s linear}
      pre.htop{margin:6px 0 0 0; white-space:pre; color:var(--ink); font-size:12px; line-height:1.15}
      .hdr{color:#9be7ff}
      .rev{background:#54c9ee26;color:#111;padding:0 2px;border-radius:3px}
      #errorBox{position:fixed;left:10px;bottom:34px;background:#220; color:#f99; padding:6px 8px; border-radius:6px; font-size:12px; display:none; max-width:70vw; white-space:pre-wrap}
      footer.note{position:fixed;left:10px;bottom:10px;color:rgba(255,255,255,.18);font-size:12px;user-select:none}
      /* Logo + MOTD gemeinsam positionieren */
      .brand-block {
        position: absolute;
        top: 20%;              /* vertikal Bildschirmmitte */
        right: 10%;             /* etwas Abstand vom rechten Rand */
        transform: translateY(-50%); /* zentriert vertikal */
        text-align: center;
        z-index: 10;
      }
      .brand-block .logo { width: 240px; max-width: 70vw; }
      .brand-block .title { letter-spacing: 2px; font-size: 14px; opacity: 0.9; margin-top: 6px; }
      .brand-block .motd { margin-top: 10px; background: transparent; border: none; color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .3px; text-align: center; }
    
/* JamesDaRock identity and responsive simulation layout */
.wrap { max-width: 1200px; margin: auto; }
.topgrid { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
.brand-block { position: static; transform: none; align-self: center; }
.box, .panel { border-color: #29313e; min-width: 0; overflow: auto; }
.grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.left { min-width: 0; width: 100%; }
.matrix-nav, .matrix-intro, footer.note { position: relative; z-index: 3; max-width: 1200px; margin: auto; padding: 16px 24px; color: #e5e9f0; }
.matrix-nav { display: flex; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid #29313e; align-items: center; }
.matrix-nav a, footer a { color: #54c9ee; }
.matrix-intro h1 { margin: 0; font-size: 1.8rem; }
.matrix-intro p { color: #b1bac4; }
footer.note { left: auto; bottom: auto; user-select: auto; }
#rain { opacity: .35; pointer-events: none; }
@media (max-width: 800px) { .topgrid { grid-template-columns: minmax(0, 1fr); } .brand-block { grid-row: 1; } .term { overflow-wrap: anywhere; } }
@media (prefers-reduced-motion: reduce) { #rain { display: none; } * { transition: none !important; } }

/* ==================================================
 * Full-viewport console layout
 * Keep the document stationary; allow panels to scroll independently.
 * ================================================== */
html, body { height: 100%; overflow: hidden; }
body { display: flex; flex-direction: column; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.wrap {
    width: 100%;
    max-width: 1200px;
    flex: 1 1 0;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(8px, 2vh, 24px);
    gap: clamp(8px, 2vh, 16px);
    overflow: hidden;
}
.topgrid { flex: 0 1 auto; min-height: 0; max-height: 58%; overflow: auto; }
.panel { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.term { flex: 1 1 0; height: auto; min-height: 0; overflow: hidden; }
footer.note { flex: 0 0 auto; width: 100%; padding: 6px 16px; font-size: 11px; }
#errorBox { z-index: 20; }
/* Small screens retain access to all dashboard content via internal scrolling. */
@media (max-width: 800px) {
    .topgrid { max-height: 60%; }
    .brand-block .motd { min-height: 0; }
    .brand img { width: 40px; height: 40px; }
    .grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
    .panel { padding: 6px; }
    .term { padding: 8px; }
}
