:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: #1769aa;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.danger {
  background: #b73535;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.topbar p {
  color: #5d6d7e;
  margin-top: 6px;
}

.panel {
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(23 32 42 / 6%);
  padding: 18px;
}

.auth-panel {
  margin-bottom: 18px;
}

.grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 360px 1fr;
}

label {
  color: #2c3e50;
  display: grid;
  font-weight: 700;
  gap: 7px;
  margin-bottom: 14px;
}

input,
textarea {
  border: 1px solid #c9d4df;
  border-radius: 6px;
  color: #17202a;
  padding: 10px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.inline-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.checkbox {
  align-items: center;
  display: flex;
  font-weight: 600;
}

.checkbox input {
  width: auto;
}

.hint {
  color: #6c7a89;
  font-size: 13px;
  margin-top: 12px;
}

.section-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.pill,
.active-badge {
  background: #eef3f7;
  border-radius: 999px;
  color: #35506b;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.pill.ok {
  background: #e1f3e8;
  color: #1e7042;
}

.versions-list {
  display: grid;
  gap: 12px;
}

.version-card {
  align-items: center;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  padding: 14px;
}

.version-title {
  font-size: 16px;
  font-weight: 800;
}

.version-meta {
  color: #6c7a89;
  font-size: 13px;
  margin-top: 4px;
}

.version-notes {
  color: #2c3e50;
  margin-top: 8px;
  white-space: pre-wrap;
}

.version-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.version-actions .active-badge {
  display: none;
}

.version-card.active {
  border-color: #2fa36b;
}

.version-card.active .active-badge {
  display: inline-flex;
}

.version-card.active .publish-button,
.version-card.active .delete-button {
  display: none;
}

.icon-button {
  align-items: center;
  display: inline-flex;
  font-size: 22px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

@media (max-width: 820px) {
  .shell {
    padding: 16px;
  }

  .grid,
  .version-card,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .version-actions {
    justify-content: flex-start;
  }
}
