:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #1a1c21;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ece8e7;
  --muted: #a8a1a0;
  --accent: #ff5545;
  --accent-soft: rgba(255, 85, 69, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 85, 69, 0.16), transparent 24%),
    linear-gradient(180deg, #0d0e11 0%, var(--bg) 100%);
  color: var(--text);
}

.hidden {
  display: none !important;
}

.feedback-console {
  min-height: 100vh;
  padding: 1.25rem;
  display: grid;
  place-items: center;
}

.panel {
  width: min(1100px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.login-panel {
  width: min(420px, 100%);
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span,
.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field-input {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 2.6rem;
  padding: 0.6rem 0.75rem;
}

.primary-button,
.ghost-button {
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  min-height: 2.6rem;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, #ffb4aa, #ff5545);
  color: #2f0905;
  border-color: rgba(255, 180, 170, 0.42);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.error-text {
  color: #ffb4aa;
  min-height: 1rem;
  margin: 0;
}

.dashboard-panel {
  display: grid;
  gap: 1rem;
}

.dashboard-head,
.reports-head,
.head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.head-actions {
  justify-content: flex-end;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.project-card.is-active {
  border-color: rgba(255, 180, 170, 0.35);
  background: var(--accent-soft);
}

.project-card strong {
  display: block;
  font-size: 1rem;
}

.project-meta {
  margin-top: 0.5rem;
  color: var(--muted);
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.reports-panel {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem;
  display: grid;
  gap: 0.7rem;
}

.reports-list {
  display: grid;
  gap: 0.65rem;
  max-height: 58vh;
  overflow: auto;
}

.report-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.report-card.is-open {
  border-color: rgba(255, 85, 69, 0.35);
}

.report-top,
.report-meta,
.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.report-page {
  font-weight: 800;
}

.report-status {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 800;
}

.report-status.open {
  color: #ffb4aa;
  border-color: rgba(255, 85, 69, 0.35);
  background: rgba(255, 85, 69, 0.14);
}

.report-status.closed {
  color: #9fe5b6;
  border-color: rgba(159, 229, 182, 0.35);
  background: rgba(159, 229, 182, 0.12);
}

.report-message {
  margin: 0.55rem 0;
  line-height: 1.45;
}

.report-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .feedback-console {
    padding: 0.8rem;
  }
}
