:root {
  --yellow: #ffe500;
  --ink: #14120b;
  --red: #e10600;
  --cream: #fff8e6;
  --paper: #ffffff;
  --muted: #5c5648;
  --line: rgba(20, 18, 11, 0.12);
  --font: "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body, button, input, textarea, select, .tox {
  font-family: var(--font);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  font-weight: 400;
}

a { color: var(--ink); }

header {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--ink);
}

header img { height: 58px; width: auto; display: block; }

header strong { display: block; font-size: 0.95rem; letter-spacing: -0.02em; }

header a { color: var(--ink); font-weight: 700; text-decoration: none; }

header .site {
  margin-left: auto;
  background: var(--ink);
  color: var(--yellow);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

header .site:hover { background: var(--red); color: #fff; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ink);
}

nav a {
  color: #fff8e6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
}

nav a:hover { background: var(--yellow); color: var(--ink); }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

h2, h3 { letter-spacing: -0.03em; font-weight: 800; }

label { display: block; margin-top: 14px; font-weight: 600; font-size: 0.88rem; }

input[type=text], input[type=password], input[type=search], textarea, select {
  width: min(100%, 640px);
  margin-top: 6px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

textarea { min-height: 120px; }

button, .button {
  background: var(--ink);
  color: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover, .button:hover { background: var(--red); color: #fff; }

.row { display: flex; gap: 20px; align-items: flex-start; }

.list, .editor {
  background: var(--paper);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(20, 18, 11, 0.08);
}

.list { width: 300px; flex: none; }
.editor { flex: 1; min-width: 0; }

.list a { text-decoration: none; }
.list a:hover b { color: var(--red); }

.drop {
  width: min(100%, 320px);
  min-height: 84px;
  border: 2px dashed var(--ink);
  border-radius: 16px;
  background: #fff3a3;
  padding: 18px;
  text-align: center;
  font-weight: 700;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
}

th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--ink); color: var(--yellow); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.muted { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.error { color: var(--red); font-weight: 700; }
.yes { color: #0b7a32; font-weight: 700; }
.no { color: var(--red); font-weight: 700; }
.pager { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--line); }

footer {
  background: var(--ink);
  color: #f6f1e4;
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  header { flex-wrap: wrap; }
  header .site { margin-left: 0; }
  .row { flex-direction: column; }
  .list { width: auto; }
  .row > .editor { order: -1; }
}
