:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  background: #000; color: #00ff41;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  margin: 0; padding: 18px;
  font-size: 13px; line-height: 1.45;
}
a { color: #00ff41; text-decoration: none; }
a:hover { text-shadow: 0 0 6px #00ff41; }

.term-shell {
  border: 1px solid #00ff41;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.4), inset 0 0 60px rgba(0, 255, 65, 0.04);
  position: relative; overflow: hidden;
}
.term-shell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.18) 3px, rgba(0,0,0,0) 4px);
}
.term-shell::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
}
.term-titlebar {
  background: #00ff41; color: #000; padding: 4px 10px; font-weight: 700;
  display: flex; justify-content: space-between; letter-spacing: 1px;
  font-size: 11px; text-transform: uppercase;
}
.term-body { padding: 14px 18px; position: relative; z-index: 1; }
.ascii { color: #00ff41; white-space: pre; font-size: 10px; line-height: 1.0; opacity: 0.95; text-shadow: 0 0 4px #00ff41; }
.boot { color: #007722; font-size: 11px; margin: 8px 0 14px; }
.boot .ok { color: #00ff41; }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.panel { border-top: 1px dashed #00ff41; margin-top: 14px; padding-top: 10px; }
.panel-head { font-size: 11px; color: #00ff41; letter-spacing: 2px; opacity: 0.85; margin-bottom: 8px; }
.panel-head .b { color: #007722; }

.row { display: grid; grid-template-columns: 88px 1fr 1fr 60px 90px; gap: 10px; padding: 3px 0; font-size: 12px; border-bottom: 1px dotted #001a08; }
.row.header { color: #007722; text-transform: uppercase; font-size: 10px; letter-spacing: 1px; border-bottom: 1px solid #00ff41; padding-bottom: 5px; }
.row.alert { animation: alert 2.5s ease-out; }
@keyframes alert { 0% { background: rgba(0,255,65,0.25); text-shadow: 0 0 6px #00ff41; } 100% { background: transparent; } }
.green { color: #00ff41; }
.dim { color: #336633; }
.yes { color: #00ff41; }
.no { color: #ff4d4d; }
.err { color: #ff4d4d; }

.grid-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 10px; }

.wrow { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12px; border-bottom: 1px dotted #001a08; align-items: center; }
.btn-x { background: transparent; color: #ff4d4d; border: 1px solid #ff4d4d; cursor: pointer; padding: 0 6px; font-family: inherit; }
.btn-x:hover { background: #ff4d4d; color: #000; }

.stat { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.stat .k { color: #007722; }
.stat .v { color: #00ff41; }

.term-statusbar { background: #00ff41; color: #000; padding: 3px 10px; font-size: 10.5px; letter-spacing: 1px; display: flex; justify-content: space-between; text-transform: uppercase; }

.add-form { display: flex; flex-direction: column; gap: 6px; }
.add-form textarea, .add-form input { background: #000; border: 1px dashed #00ff41; color: #00ff41; padding: 6px 8px; font-family: inherit; outline: none; }
.add-form button, button[type="submit"] { background: #000; border: 1px solid #00ff41; color: #00ff41; padding: 4px 10px; font-family: inherit; cursor: pointer; font-size: 11px; letter-spacing: 1px; }
.add-form button:hover, button[type="submit"]:hover { background: #00ff41; color: #000; }

.login-shell { max-width: 520px; margin: 100px auto; border: 1px solid #00ff41; padding: 30px; box-shadow: 0 0 30px rgba(0,255,65,0.3); }
.login-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.login-form input { background: #000; border: 1px dashed #00ff41; color: #00ff41; padding: 8px; font-family: inherit; }
