:root {
  --bg: #0b1020;
  --card: #121a33;
  --text: #e8ecff;
  --muted: #a7b0d8;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #6aa6ff;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(106, 166, 255, 0.25), transparent 60%),
    radial-gradient(800px 400px at 80% 20%, rgba(160, 106, 255, 0.15), transparent 60%),
    var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin: 14px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.card.inset {
  background: rgba(0, 0, 0, 0.22);
  box-shadow: none;
}

h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.form {
  grid-template-columns: 1fr;
  max-width: 440px;
  margin: 0 auto;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(106, 166, 255, 0.55);
}

select option,
select optgroup {
  background-color: #0b1020;
  color: var(--text);
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.row.space {
  justify-content: space-between;
}

.btn {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 9px 12px;
  cursor: pointer;
}
.btn.primary {
  border-color: rgba(106, 166, 255, 0.55);
  background: rgba(106, 166, 255, 0.18);
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: top;
}
td.actions {
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}
.badge.good {
  border-color: rgba(106, 255, 180, 0.35);
  background: rgba(106, 255, 180, 0.12);
}
.badge.warn {
  border-color: rgba(255, 214, 106, 0.35);
  background: rgba(255, 214, 106, 0.12);
}
.badge.bad {
  border-color: rgba(255, 92, 122, 0.35);
  background: rgba(255, 92, 122, 0.12);
}
.badge.todo {
  border-color: rgba(106, 166, 255, 0.35);
  background: rgba(106, 166, 255, 0.12);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}
.modalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modalCard {
  position: relative;
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: linear-gradient(180deg, rgba(18, 26, 51, 0.98), rgba(8, 12, 25, 0.98));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.commentitem {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}
.commentitem__meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.commentitem__author {
  font-weight: 700;
}
.commentitem__body {
  white-space: pre-wrap;
  word-break: break-word;
}
