body { font: clamp(14px, 1.5vw, 18px)/1.6 monospace; margin: 0; padding: 30px; background: #111; color: #eee; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; }
h1 { text-align: center; margin-bottom: 40px; font-size: 1.55em; }
h1 sup { font-size: 0.5em; vertical-align: super; opacity: 0.7; }
.logo { display: block; margin: 0 auto 20px; height: 4em; }
body > a:last-of-type { margin-top: auto; }
body > a:last-of-type .logo { margin-top: 40px; margin-bottom: 0; }
.grid { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; max-width: 1048px; margin: 0 auto; }
#log-show, #log-controls, #logs { max-width: 1048px; width: 100%; margin: 0 auto; }
#log-show.hidden, #log-controls.hidden, #logs.hidden { display: none; }
.column { border: 1px solid #444; padding: 20px 30px; width: 500px; box-sizing: border-box; }
.column-full { width: 1048px; }
.column h2 { margin: 0 0 15px; font-size: 1.22em; text-align: center; }
.column h3 { margin: 15px 0 10px; font-size: 1.11em; color: #888; border-top: 1px solid #444; padding-top: 15px; text-align: center; }
.row { display: flex; justify-content: space-between; }
.row a { color: inherit; text-decoration: none; }
.user-row { display: flex; justify-content: space-between; }
.user-row a { color: inherit; text-decoration: none; }
.user-row a:hover { text-decoration: underline; }
.row a:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
table th, table td { padding: 12px 16px; text-align: left; }
table th { color: #888; font-weight: normal; border-bottom: 1px solid #444; }
table td { border-bottom: 1px solid #333; }
table tbody tr:hover { background: #1a1a1a; }
.connected { color: #4f4; }
.disconnected { color: #f44; }
.copyable { cursor: pointer; position: relative; z-index: 10; }
.copyable:hover { background: #222; outline: 1px solid #444; z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.copyable.hover-expand:hover::after {
  content: attr(data-full);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #111;
  border: 1px solid #444;
  padding: 4px 8px;
  white-space: nowrap;
  color: #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
  z-index: 1000;
  pointer-events: none;
}
.wrapper { width: fit-content; margin: 0 auto; }
#log-show {
  display: block;
  margin: 40px auto 0;
  background: #333;
  border: 1px solid #444;
  color: #eee;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
}
#log-show:hover { background: #444; }
#log-controls {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
#log-controls input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #444;
  color: #eee;
  padding: 8px 12px;
  font: inherit;
}
#log-controls input::placeholder { color: #666; }
#log-controls button {
  background: #333;
  border: 1px solid #444;
  color: #eee;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
}
#log-controls button:hover { background: #444; }
#log-controls button.paused { background: #4a3; color: #111; }
#log-level-controls { position: relative; }
#log-level-options.hidden { display: none; }
#log-level-options { position: absolute; bottom: 100%; left: 0; display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
#log-controls + #logs { margin-top: 0; }
#logs {
  height: 450px;
  overflow-y: auto;
  overflow-x: auto;
  background: #0a0a0a;
  border: 1px solid #444;
  padding: 10px;
  font-size: 0.67em;
  box-sizing: border-box;
  scrollbar-color: #444 #1a1a1a;
}
#logs div { white-space: pre; }
#logs::-webkit-scrollbar { width: 8px; }
#logs::-webkit-scrollbar-track { background: #1a1a1a; }
#logs::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
#logs::-webkit-scrollbar-thumb:hover { background: #666; }
.log-error { color: #f55; }
.log-warn { color: #fa0; }
.log-info { color: #4f4; }
.log-debug { color: #88f; }
@media (max-width: 1140px) {
  body { padding: 20px; }
  .wrapper { width: auto; }
  .columns { flex-direction: column; gap: 30px; align-items: center; }
  .grid { gap: 30px; }
  .column { width: 100%; max-width: 500px; }
  .column-full { width: 100%; max-width: 500px; }
  #log-controls { flex-wrap: wrap; }
  #log-controls input { width: 100%; flex: none; margin-bottom: 10px; }
  #log-controls button { flex: 1; }
  .user-row { flex-wrap: wrap; gap: 4px; justify-content: center; }
  .user-row a { width: 100%; text-align: center; }
}
@media (max-width: 560px) {
  body { padding: 10px; }
  .column { padding: 15px 20px; }
}
.git-info { text-align: center; font-size: 0.7em; color: #666; margin-top: 20px; }
.git-info a { color: inherit; text-decoration: none; }
.git-info a:hover { text-decoration: underline; }
