:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #10100f;
  --line: #2e2e2b;
  --text: #f5f2ea;
  --muted: #a8a49b;
  --yellow: #edd334;
  --green: #71d48d;
  --danger: #ff6f6f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(237, 211, 52, 0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.admin-page {
  width: min(100%, 1120px);
}

.brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 10px 0 30px;
  text-align: center;
}

.mark {
  width: 86px;
  height: 54px;
  object-fit: contain;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  margin-bottom: 24px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 13vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.accent {
  color: var(--yellow);
}

.hero p {
  margin: 16px auto 0;
  max-width: 18em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.card {
  border: 1px solid var(--line);
  background: rgba(16, 16, 15, 0.86);
  padding: 18px;
}

.field {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
}

label,
.label {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.category-options {
  grid-template-columns: repeat(2, 1fr);
}

.option {
  position: relative;
}

.option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.option span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  background: #090909;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.option input:checked + span {
  border-color: var(--yellow);
  background: rgba(237, 211, 52, 0.12);
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #080808;
  color: var(--text);
  font: inherit;
  outline: none;
}

input,
select {
  height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  line-height: 1.7;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--yellow);
}

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

button,
.button {
  border: 0;
  background: var(--yellow);
  color: #080808;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  border: 1px solid var(--line);
  background: #10100f;
  color: var(--text);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.status {
  color: var(--muted);
  font-size: 14px;
}

.success {
  border: 1px solid rgba(113, 212, 141, 0.5);
  background: rgba(113, 212, 141, 0.1);
  color: var(--green);
  margin-top: 16px;
  padding: 14px;
}

.error {
  border: 1px solid rgba(255, 111, 111, 0.45);
  background: rgba(255, 111, 111, 0.1);
  color: var(--danger);
  margin-top: 16px;
  padding: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-item {
  border: 1px solid var(--line);
  background: rgba(16, 16, 15, 0.84);
  padding: 16px;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 5px 8px;
}

.pill.new {
  border-color: rgba(237, 211, 52, 0.7);
  color: var(--yellow);
}

.pill.closed {
  border-color: rgba(113, 212, 141, 0.55);
  color: var(--green);
}

.feedback-message {
  margin: 0 0 14px;
  white-space: pre-wrap;
  line-height: 1.7;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.note-input {
  min-height: 64px;
}

.empty {
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

@media (max-width: 640px) {
  .options,
  .category-options {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .toolbar-left,
  .toolbar-right,
  .actions,
  .item-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
