* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: #0b0f17;
  color: #e6edf3;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #1f2a37;
  background: #0d1422;
  position: sticky;
  top: 0;
}
.title { font-weight: 700; letter-spacing: 0.2px; }
.links a {
  color: #9cc2ff;
  text-decoration: none;
  margin-left: 12px;
  font-size: 13px;
}
.links a:hover { text-decoration: underline; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #93a4b8;
}
.lang select {
  background: #0b1220;
  color: #e6edf3;
  border: 1px solid #233042;
  border-radius: 8px;
  padding: 6px 8px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  border: 1px solid #1f2a37;
  background: #0f172a;
  border-radius: 10px;
  padding: 14px;
}
.card h2 {
  margin: 0 0 10px 0;
  font-size: 16px;
}
.row {
  display: grid;
  grid-template-columns: 160px 1fr 160px 1fr;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; }
}

input[type="number"], textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #233042;
  background: #0b1220;
  color: #e6edf3;
}
textarea {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #2a3a52;
  background: #111b30;
  color: #e6edf3;
  cursor: pointer;
}
button:hover { background: #14203a; }
button.primary { background: #1a3a8a; border-color: #2a4fb5; }
button.primary:hover { background: #2145a4; }
button.danger { background: #5b1d22; border-color: #7a2a31; }
button.danger:hover { background: #6f242a; }
button.warn { background: #7a4b12; border-color: #a0651b; }
button.warn:hover { background: #8c5716; }
.hint { margin: 10px 0 0 0; color: #93a4b8; font-size: 12px; }
.small { color: #93a4b8; font-size: 12px; }

.pre {
  background: #0b1220;
  border: 1px solid #233042;
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.4;
}

.footer {
  padding: 10px 14px;
  color: #93a4b8;
  font-size: 12px;
  border-top: 1px solid #1f2a37;
}
code { background: #0b1220; padding: 2px 6px; border-radius: 6px; border: 1px solid #233042; }

.tableWrap {
  overflow: auto;
  border: 1px solid #233042;
  border-radius: 10px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  position: sticky;
  top: 0;
  background: #0d1422;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #1f2a37;
  color: #e6edf3;
  white-space: nowrap;
}
.table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #1f2a37;
  color: #cdd8e3;
  white-space: nowrap;
}
.pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid #233042;
  background: #0b1220;
  color: #e6edf3;
}
progress {
  width: 140px;
  height: 10px;
}
