:root {
  --orange: #ed6a24;
  --orange-deep: #c45316;
  --ink: #111111;
  --panel: #1c1c1c;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #b4b4b4;
  --danger: #f3b4a8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: Outfit, system-ui, sans-serif;
}

body {
  min-height: 100dvh;
}

.glow {
  position: fixed;
  inset: auto -8rem -10rem auto;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(237, 106, 36, 0.28), transparent 68%);
  pointer-events: none;
}

.nav-toggle {
  position: fixed;
  top: 1.05rem;
  left: 1.05rem;
  z-index: 40;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  left: min(18.5rem, 86vw);
  z-index: 30;
  background: rgba(0, 0, 0, 0.55);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 35;
  width: min(18.5rem, 86vw);
  height: 100dvh;
  background: #161616;
  border-right: 1px solid var(--line);
  padding: 5rem 1.1rem 1.5rem;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
}

body.nav-open .sidebar {
  transform: translateX(0);
}

.sidebar .wordmark {
  margin-bottom: 1.4rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.45rem;
}

.sidebar-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  background: rgba(237, 106, 36, 0.14);
  border-color: rgba(237, 106, 36, 0.45);
}

.shell {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.6rem 0 3.5rem;
}

.shell.wide {
  width: min(1100px, calc(100% - 2.5rem));
}

.shell.narrow {
  width: min(420px, calc(100% - 2.5rem));
}

.brand h1 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
}

.brand.row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
}

.wordmark {
  margin: 0;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.4rem;
}

form,
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

label,
legend {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #141414;
  color: var(--text);
  font: inherit;
  padding: 0 0.9rem;
}

input:focus,
select:focus {
  outline: 2px solid var(--orange);
  border-color: transparent;
}

.feelings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.feeling {
  display: block;
}

.feeling input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feeling > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.4rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #141414;
  cursor: pointer;
}

.feeling input:focus-visible + span,
.feeling input:checked + span {
  border-color: var(--orange);
  background: rgba(237, 106, 36, 0.16);
}

.emoji {
  font-size: 1.85rem;
  line-height: 1;
}

.feeling-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.feeling input:checked + span .feeling-label {
  color: #fff;
}

.primary,
.ghost {
  min-height: 3.4rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.3rem;
}

.primary {
  background: var(--orange);
  color: #fff;
  width: 100%;
  margin-top: 0.4rem;
}

.primary:hover {
  background: var(--orange-deep);
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.error {
  color: var(--danger);
  margin: 0;
}

.thanks {
  text-align: center;
  padding: 2.4rem 1.4rem;
}

.thanks h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2.1rem, 6vw, 3rem);
  letter-spacing: -0.04em;
}

.thanks p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.staff-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: end;
}

.inline {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.empty {
  color: var(--muted);
  margin: 0.4rem 0;
}

@media (max-width: 640px) {
  .feelings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
