:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e9eef5;
  background: #0b0e12;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% -10%, #182131 0, transparent 35%), #0b0e12; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1500px, calc(100% - 28px)); margin: 0 auto; padding: 22px 0 28px; }
.login-card { width: min(430px, 100%); margin: 12vh auto 0; padding: 28px; background: #11161d; border: 1px solid #232b36; border-radius: 16px; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.brand-row { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #d94e3f; color: #fff; font-weight: 900; font-size: 24px; }
h1 { margin: 0; font-size: 22px; letter-spacing: .01em; }
p { margin: 4px 0 0; }
label { display: grid; gap: 7px; margin: 14px 0; color: #b8c3d1; font-size: 14px; }
input { color: #e9eef5; background: #0b0f14; border: 1px solid #2a3440; border-radius: 9px; outline: none; padding: 11px 12px; }
input:focus { border-color: #65758a; box-shadow: 0 0 0 3px rgba(101,117,138,.15); }
button { border: 0; border-radius: 9px; padding: 10px 14px; background: #d94e3f; color: #fff; font-weight: 700; }
button:hover { filter: brightness(1.06); }
button:disabled { cursor: not-allowed; opacity: .5; }
.login-card button { width: 100%; margin-top: 8px; }
.error-text { min-height: 20px; color: #ff8b80; font-size: 13px; }
.app { display: grid; gap: 12px; }
.topbar { min-height: 66px; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 0 4px; }
.subtle { color: #7f8b9a; font-size: 13px; }
.status-strip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; border: 1px solid transparent; }
.pill.online { background: #10271d; border-color: #1f5d3d; color: #77d8a5; }
.pill.offline { background: #2a1717; border-color: #673030; color: #ff9b91; }
.pill.neutral { background: #161d26; border-color: #2b3745; color: #94a3b8; }
.ghost { background: #141a22; border: 1px solid #293441; color: #c6d0dc; font-weight: 650; }
.toolbar { display: flex; align-items: center; gap: 9px; padding: 10px; background: #10151c; border: 1px solid #222b36; border-radius: 12px; }
.toolbar input[type=search] { flex: 1; min-width: 160px; }
.toggle { display: flex; align-items: center; gap: 7px; margin: 0; white-space: nowrap; }
.toggle input { accent-color: #d94e3f; }
.console-card { background: #090c10; border: 1px solid #222b36; border-radius: 12px; overflow: hidden; }
.console { height: min(68vh, 760px); overflow: auto; padding: 14px 16px 20px; font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: 13px; line-height: 1.55; scrollbar-gutter: stable; }
.line { display: grid; grid-template-columns: 96px 86px minmax(0,1fr); gap: 10px; padding: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.line.hidden { display: none; }
.time { color: #5d6a78; }
.name { color: #8ba1ba; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message { color: #d7dde5; }
.line.error .message { color: #ff8f85; }
.line.warning .message { color: #eac36a; }

.line.command .name { color: #d7a7ff; font-weight: 700; }
.line.command .message { color: #d7a7ff; font-weight: 650; }
.line.rcon-response .name { color: #7fc7ff; }
.line.rcon-response .message { color: #b8ddff; }
.command-card { padding: 12px; background: #10151c; border: 1px solid #222b36; border-radius: 12px; }
.command-row { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 9px; align-items: center; }
.prompt { color: #d94e3f; font-weight: 900; font-size: 20px; }
.command-row input { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.command-meta { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px 0 29px; }
@media (max-width: 700px) {
  .shell { width: min(100% - 16px, 1500px); padding-top: 10px; }
  .topbar { align-items: flex-start; }
  .toolbar { flex-wrap: wrap; }
  .toolbar input[type=search] { flex-basis: 100%; }
  .console { height: 62vh; padding: 10px; font-size: 12px; }
  .line { grid-template-columns: 72px minmax(0,1fr); gap: 7px; }
  .line .name { display: none; }
  .command-row { grid-template-columns: 16px minmax(0,1fr); }
  .command-row button { grid-column: 2; }
  .command-meta { display: none; }
}
