:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --primary: #7c5cff;
  --primary-hover: #6a4dff;
}

* {
  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";
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(124, 92, 255, 0.25), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(67, 212, 255, 0.18), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.main {
  padding: 22px 0;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
}

.h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.h2 {
  margin: 0 0 8px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.row-between {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.table-wrap {
  margin-top: 14px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.12);
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.table th {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.input-sm {
  padding: 10px 10px;
  border-radius: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chip-active {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.18);
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.label {
  display: grid;
  gap: 8px;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 16, 32, 0.6);
  color: var(--text);
  outline: none;
}
.textarea {
  resize: vertical;
  min-height: 44px;
}
.input:focus {
  border-color: rgba(124, 92, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
}
.drag-handle:active {
  cursor: grabbing;
}

.priority-badge {
  display: inline-flex;
  min-width: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  justify-content: center;
  font-weight: 700;
}

.sortable-placeholder {
  height: 52px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px dashed rgba(124, 92, 255, 0.6);
}

.inline-form {
  margin: 0;
}

.alert {
  border: 1px solid rgba(255, 102, 102, 0.35);
  background: rgba(255, 102, 102, 0.12);
  padding: 10px 12px;
  border-radius: 12px;
}

.codeblock {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 14px;
  overflow: hidden;
}
.codeblock-title {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
}
.codeblock pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
}

.footer {
  padding: 18px 0 6px 0;
  color: var(--muted);
  text-align: center;
}

