:root {
  color-scheme: dark;
  --ink: #f5f3ee;
  --muted: #aeb7c2;
  --paper: #101419;
  --panel: #171d24;
  --line: #2a333d;
  --green: #68d4b2;
  --rose: #ff8d7f;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(16, 20, 25, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.admin-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(24, 63, 53, 0.18);
}

.admin-header a,
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171d24;
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.admin-header a:hover {
  border-color: rgba(40, 100, 88, 0.4);
  background: #20342f;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  padding: 34px 0 22px;
}

.hero p,
.panel-head p {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.toolbar,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

select,
input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101419;
  color: var(--ink);
  padding: 10px 12px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(104, 212, 178, 0.42);
  box-shadow: 0 0 0 3px rgba(104, 212, 178, 0.12);
  outline: 0;
}

.toolbar select {
  max-width: 220px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 48px;
}

.queue-panel,
.review-panel,
.empty-state,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.queue-panel,
.review-panel {
  padding: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.panel-head h2 {
  margin-bottom: 0;
}

#submissionStatus,
#queueCount {
  border-radius: 999px;
  background: #142620;
  color: var(--green);
  padding: 8px 10px;
  font-weight: 900;
}

.queue-list {
  display: grid;
  gap: 8px;
}

.queue-item {
  width: 100%;
  text-align: left;
}

.queue-item strong,
.queue-item span {
  display: block;
}

.queue-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  padding: 28px;
}

.empty-state p,
.status-line {
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.wide {
  grid-column: 1 / -1;
}

details {
  margin-top: 16px;
  padding: 14px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

pre {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--muted);
}

.actions {
  margin-top: 16px;
}

#publishButton {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

#rejectButton {
  color: #8f2f28;
}

@media (max-width: 860px) {
  .layout,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
.queue-panel,
.review-panel,
.empty-state,
details,
.queue-item,
#submissionStatus,
#queueCount {
  color: var(--ink);
}

body.travel-light {
  --ink: #17211d;
  --muted: #66716c;
  --paper: #f6f8f6;
  --panel: #ffffff;
  --line: #dce4df;
  --green: #286f62;
  --rose: #c95f57;
  background: var(--paper);
  color: var(--ink);
}

body.travel-light .admin-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

body.travel-light .brand-mark {
  box-shadow: 0 8px 18px rgba(24, 63, 53, 0.18);
}

body.travel-light .admin-header a,
body.travel-light button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

body.travel-light button:hover,
body.travel-light .admin-header a:hover {
  border-color: rgba(40, 111, 98, 0.28);
  background: #edf6f2;
}

body.travel-light select,
body.travel-light input,
body.travel-light textarea {
  background: #fff;
  color: var(--ink);
  border-color: #ccd6d0;
}

body.travel-light .queue-panel,
body.travel-light .review-panel,
body.travel-light .empty-state,
body.travel-light details {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(27, 47, 39, 0.05);
}

body.travel-light #submissionStatus,
body.travel-light #queueCount {
  background: #edf6f2;
  color: #245a4b;
}

body.travel-light #publishButton {
  background: #183f35;
  color: #fff;
  border-color: #183f35;
}

body.travel-light #rejectButton {
  color: #8f2f28;
}
