* { box-sizing: border-box; }
body {
  font: 14px/1.4 -apple-system, system-ui, "Segoe UI", sans-serif;
  margin: 0; background: #0d1117; color: #c9d1d9;
}

header {
  padding: 16px 24px;
  border-bottom: 1px solid #30363d;
  display: flex; align-items: baseline; gap: 24px; flex-wrap: wrap;
}
h1 { margin: 0; font-size: 20px; }
#kpis { display: flex; gap: 24px; }
#kpis span { font-size: 13px; color: #8b949e; }
#kpis b { color: #58a6ff; font-size: 18px; margin-right: 4px; }
#updated { font-size: 12px; color: #6e7681; margin-left: auto; }

.panel { padding: 16px 24px; border-bottom: 1px solid #30363d; }
.panel h2 { margin: 0 0 8px; font-size: 16px; }

.filters {
  display: flex; gap: 8px; padding: 12px 24px; flex-wrap: wrap;
  border-bottom: 1px solid #30363d;
}
.filters select, .filters input {
  background: #161b22; color: #c9d1d9; border: 1px solid #30363d;
  padding: 6px 10px; border-radius: 6px; font: inherit;
}
.filters input[type="search"] { min-width: 240px; }

table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 8px 12px; border-bottom: 1px solid #21262d;
  text-align: left; vertical-align: top;
}
th {
  background: #161b22; font-weight: 600; font-size: 12px;
  color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px;
  position: sticky; top: 0;
}
tr:hover { background: #161b22; }

.status {
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
}
.status.live { background: #238636; color: white; }
.status.shipped { background: #1f6feb; color: white; }
.status.built { background: #6e7681; color: white; }
.status.stale { background: #da3633; color: white; }

input[type="text"] {
  width: 100%; background: transparent; color: #c9d1d9;
  border: 1px solid transparent; padding: 4px 6px; border-radius: 4px;
  font: inherit;
}
input[type="text"]:hover, input[type="text"]:focus {
  border-color: #30363d; background: #0d1117;
}

textarea {
  width: 100%; min-height: 80px;
  background: #161b22; color: #c9d1d9;
  border: 1px solid #30363d; padding: 8px; border-radius: 6px;
  font: inherit; resize: vertical;
}

button {
  background: #238636; color: white; border: 0;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-size: 13px;
}
button:hover { background: #2ea043; }
button:disabled { background: #6e7681; cursor: default; }

.mark { display: flex; gap: 6px; margin-top: 4px; }
.mark button { background: #21262d; }
.mark button:hover { background: #30363d; }

#answer {
  margin-top: 12px; padding: 12px;
  background: #161b22; border-radius: 6px; min-height: 24px;
  white-space: pre-wrap;
}

.login-page {
  display: grid; place-items: center; min-height: 100vh;
}
#login {
  background: #161b22; padding: 24px; border-radius: 8px;
  display: flex; flex-direction: column; gap: 12px; min-width: 280px;
}
#login h1 { text-align: center; margin: 0; }
#err { color: #da3633; margin: 0; min-height: 18px; font-size: 13px; }
