* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f172a;
  min-height: 100vh;
  color: #e2e8f0;
}

.app-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

header h1 {
  margin: 0;
  font-size: 1.75rem;
}

header p {
  margin: 0;
  color: #94a3b8;
}

.secret-panel,
.controls {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.secret-panel input,
.controls input,
.controls button {
  border: 1px solid #1e293b;
  background: #020617;
  color: #e2e8f0;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.secret-panel button,
.controls button {
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.secret-panel button:disabled,
.controls button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secret-panel small {
  width: 100%;
  color: #94a3b8;
}

.status-line {
  font-size: 0.85rem;
  color: #38bdf8;
}

.cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card header .author {
  display: flex;
  flex-direction: column;
}

.card header .author span:nth-child(1) {
  font-weight: 600;
}

.card header .author span:nth-child(2) {
  font-size: 0.9rem;
  color: #94a3b8;
}

.card p {
  margin: 0;
  line-height: 1.5;
  color: #e2e8f0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  border: 1px solid #1e293b;
  color: #cbd5f5;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.tag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-actions button {
  background: #1f2937;
  color: #f8fafc;
  border: 1px solid #1e293b;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.tag-actions button.active {
  border-color: #2563eb;
  color: #38bdf8;
}

.badges {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
}

.badges span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.badges svg {
  width: 14px;
  height: 14px;
}

`@media (max-width: 640px)` {
  .controls,
  .secret-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
