:root {
  font-family: 'Sora', 'Noto Sans SC', 'PingFang SC', sans-serif;
  color: #0e1b2d;
  background: #f3f8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(165deg, #f4f8ff, #ebf2ff);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.topbar h1 {
  margin: 0;
  font-size: 1.3rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(47, 95, 164, 0.2);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(31, 83, 155, 0.12);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.form-card {
  margin-bottom: 12px;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.field-row.wide {
  grid-column: 1 / -1;
}

.field-row {
  display: grid;
  gap: 4px;
  min-width: 220px;
}

label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #284b75;
}

input,
select {
  border: 1px solid rgba(47, 95, 164, 0.3);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  font: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: #1f5db9;
  box-shadow: 0 0 0 3px rgba(31, 93, 185, 0.16);
}

.btn {
  border: 1px solid rgba(47, 95, 164, 0.3);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  color: #18487f;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  border-color: #1f5db9;
  background: #1f5db9;
  color: #fff;
}

.btn.ghost {
  background: #edf4ff;
}

.btn.small {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.82rem;
}

.btn.danger {
  border-color: #d14949;
  color: #b72626;
}

.actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.muted {
  color: #486486;
}

.message {
  min-height: 20px;
  color: #bf2d2d;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid rgba(47, 95, 164, 0.15);
  padding: 9px 8px;
  font-size: 0.9rem;
  vertical-align: top;
}

th {
  color: #244b79;
}

.status-chip {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ecf3ff;
  color: #1f5db9;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}
