:root{
  --bg: #0f1115;
  --surface: #161a20;
  --surface-2: #1b2028;
  --text: #e6e8eb;
  --text-dim: #a9b0b8;
  --edge-light: #2a313b;
  --edge-dark: #090c10;
  --accent: #5aa9ff;
  --shadow: rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font:14px/1.4 ui-sans-serif, system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  /* leichte Vignette fürs Retro-Gefühl */
  background:
    radial-gradient(1000px 600px at 20% 30%, rgba(90,169,255,0.08), transparent 60%),
    radial-gradient(800px 500px at 80% 70%, rgba(121,192,255,0.06), transparent 60%),
    var(--bg);
  overflow:hidden; /* damit Fenster nicht scrollen, sondern bewegbar bleiben */
}

/* ======= Fenster ======= */
.win{
  position:absolute;
  min-width:260px; min-height:140px;
  background:var(--surface);
  border:1px solid var(--edge-dark);
  border-radius:6px;
  display:flex; flex-direction:column;
  box-shadow: 0 10px 30px var(--shadow), inset 0 1px 0 var(--edge-light);
}
.win.is-focused{
  outline:2px solid var(--accent);
  outline-offset:-1px;
}

/* Titlebar */
.win__titlebar{
  display:flex; align-items:center; gap:8px;
  padding:8px;
  background:linear-gradient(180deg, #202734, #171c25);
  border-bottom:1px solid var(--edge-dark);
  cursor:move; user-select:none;
  border-top-left-radius:6px; border-top-right-radius:6px;
}
.win__dot{
  width:10px; height:10px; border-radius:2px;
  background:var(--accent);
  box-shadow: inset 0 -1px 0 var(--edge-dark), 0 0 0 1px #0c1016;
}
.win__title{
  font-weight:600; letter-spacing:.2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.win__actions{ margin-left:auto; display:flex; gap:6px; }

/* Inhalt */
.win__content{
  padding:12px; flex:1; overflow:auto;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border-bottom-left-radius:6px; border-bottom-right-radius:6px;
}

/* Buttons */
.btn{
  appearance:none; border:1px solid var(--edge-dark); color:var(--text);
  background:var(--surface-2); padding:2px 8px; border-radius:4px; cursor:pointer;
  box-shadow: inset 0 1px 0 var(--edge-light);
  line-height:1.2;
}
.btn:hover{ background:#202632; }
.btn:active{ transform: translateY(1px); }
.btn--ghost{ background:transparent; }
.btn--ghost:hover{ background:#1b2028; }

/* Listen, Texte */
.list{ margin:0; padding-left:18px; }
.list li{ color:var(--text-dim); margin:4px 0; }

/* Hilfsklassen */
.is-hidden{ display:none !important; }
