:root {
  color-scheme: light;
  font-family: Segoe UI, Arial, sans-serif;
  font-size: 14px;
  color: #222;
  background: #f4f1ea;
}

body { margin: 0; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

header, .toolbar, .peers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

section {
  background: #fff;
  border: 1px solid #c9c2b4;
  padding: 12px;
  margin: 12px 0;
}

h1, h2 { margin: 0 0 8px; font-weight: 600; }
h1 { font-size: 20px; }
h2 { font-size: 15px; }

label { display: block; margin: 8px 0; }
input, textarea, select, button {
  font: inherit;
  padding: 4px 8px;
}

input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aaa;
  background: #fff;
}

button { cursor: pointer; }

table { width: 100%; border-collapse: collapse; }
th, td {
  border-bottom: 1px solid #ddd;
  text-align: left;
  padding: 4px 6px;
  vertical-align: top;
}

tr.selected { background: #efe6d3; }
tr { cursor: pointer; }

.detail {
  white-space: pre-wrap;
  word-break: break-word;
  background: #faf8f3;
  border: 1px solid #ddd;
  padding: 8px;
  min-height: 6em;
}

.hint, .error { color: #6a4a1a; }
.error { color: #8a1f1f; }

.peer {
  border: 1px solid #c9c2b4;
  padding: 6px 10px;
  min-width: 220px;
  background: #faf8f3;
}

.stale { opacity: 0.6; }
