:root {
  --ink: #121f1a;
  --muted: #617069;
  --line: #dbe6df;
  --paper: #ffffff;
  --soft: #f4f8f5;
  --brand: #17784e;
  --brand-dark: #092d22;
  --electric: #78f22f;
  --blue: #29abe2;
  --danger: #9c2f1f;
  --shadow: 0 20px 55px rgba(7, 16, 13, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(120, 242, 47, 0.14), transparent 24rem),
    radial-gradient(circle at 90% 5%, rgba(41, 171, 226, 0.12), transparent 22rem),
    linear-gradient(180deg, #f8fbf9, #eef5f1);
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.back-link {
  position: fixed;
  top: 24px;
  left: 24px;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.login-card,
.panel,
.stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-card {
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 42px);
}

.eyebrow {
  margin: 0 0 10px;
  color: #b77819;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1;
}

h1 {
  font-size: 2.7rem;
}

h2 {
  font-size: 1.55rem;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea,
button {
  min-height: 46px;
  border: 1px solid #c9d7cf;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  background: var(--paper);
}

button,
.topbar-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #46b51d);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.topbar-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 16, 13, 0.16);
}

.status {
  min-height: 22px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.status.is-error {
  color: var(--danger);
}

.dashboard {
  padding: clamp(18px, 4vw, 42px);
}

.topbar,
.panel-heading,
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar {
  margin-bottom: 24px;
}

.topbar-actions {
  flex-wrap: wrap;
}

.topbar-actions a,
.topbar-actions button {
  min-height: 42px;
  padding: 10px 14px;
}

.topbar-actions button:last-child {
  color: var(--brand-dark);
  background: var(--paper);
  border-color: var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stats article {
  padding: 18px;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px;
  align-items: start;
}

.panel {
  padding: clamp(18px, 3vw, 26px);
}

.filter-label {
  width: min(220px, 100%);
}

.submission-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.submission-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.submission-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.submission-card h3 {
  margin: 0 0 6px;
}

.submission-meta,
.submission-body {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pill {
  min-width: 96px;
  border: 1px solid rgba(22, 113, 75, 0.2);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: rgba(22, 113, 75, 0.08);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  text-transform: capitalize;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.submission-actions select {
  width: min(220px, 100%);
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .dashboard-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .topbar,
  .panel-heading,
  .submission-card header {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 2.2rem;
  }
}
