:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6b6b70;
  --border: #e3e3e6;
  --accent: #2f6fed;
  --accent-text: #ffffff;
  --danger: #c0392b;
  --ok: #1e8e3e;
  --warn: #b8860b;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

h1 {
  font-size: 22px;
  margin-bottom: 16px;
}

h2 {
  font-size: 18px;
  margin-top: 32px;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.topbar .topbar-content {
  max-width: 1120px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.topbar .brand {
  font-weight: 700;
  font-size: 18px;
}
.topbar .user-menu {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.topbar .user-menu a {
  color: var(--accent);
  text-decoration: none;
}

.actions {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.btn.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.topics {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.topics .status-header {
  min-width: 94px;
}
.topics th,
.topics td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.topics th {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.badge.badge-new {
  background: #fff4d6;
  color: var(--warn);
}
.badge.badge-generating {
  background: #e3ecfb;
  color: var(--accent);
}
.badge.badge-published {
  background: #e3f6e8;
  color: var(--ok);
}

.flash {
  color: var(--ok);
  font-size: 14px;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  min-height: 112px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

.drag-handle {
  width: 20px;
  text-align: center;
  color: var(--muted);
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

tr[draggable=true] {
  cursor: grab;
}

tr.dragging {
  opacity: 0.4;
}

.btn-icon,
.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
}

.btn-link-danger {
  color: var(--danger);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 480px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.form input,
.form textarea,
.form select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.error {
  color: var(--danger);
  font-size: 14px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
}
.stat-card .stat-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.bar-col .bar-value {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bar-col .bar {
  width: 100%;
  max-width: 32px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.bar-col .bar-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-box {
  background: var(--card);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-box h1 {
  margin: 0 0 8px;
}
.auth-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.auth-box input {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}/*# sourceMappingURL=style.css.map */