:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #5f6b7a;
  --line: #d8dee7;
  --accent: #1f6f5b;
  --accent-dark: #165244;
  --danger: #9d2f2f;
}

* {
  box-sizing: border-box;
}

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

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

.topbar {
  align-items: center;
  background: #26313f;
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 0 1.25rem;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.brand {
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.container {
  margin: 0 auto;
  max-width: 1100px;
  padding: 1.25rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.compact-panel {
  padding: .75rem;
}

.compact-panel h2 {
  font-size: 1rem;
  margin: 0 0 .6rem;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 18rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.item > img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.overview-picture-cell {
  width: 90px;
}

.overview-table img.overview-thumb {
  width: 72px;
  height: 54px;
  max-width: 72px;
  max-height: 54px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.thumb-link {
  display: inline-block;
  line-height: 0;
}

.item-body {
  display: grid;
  gap: .65rem;
  padding: .85rem;
}

.meta {
  color: var(--muted);
  font-size: .92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

button,
.button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  min-height: 2.25rem;
  padding: .45rem .8rem;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  background: #52616f;
}

button.active,
.button.active {
  background: var(--accent-dark);
}

button.danger {
  background: var(--danger);
}

button:hover,
.button:hover {
  background: var(--accent-dark);
}

label {
  display: block;
  font-weight: 650;
  margin: .65rem 0 .25rem;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  max-width: 100%;
  padding: .5rem;
  width: 100%;
}

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

td,
th {
  border-bottom: 1px solid var(--line);
  padding: .65rem;
  text-align: left;
  vertical-align: top;
}

.messages {
  margin-bottom: 1rem;
}

.message {
  background: #fff3cd;
  border: 1px solid #eedc82;
  border-radius: 6px;
  padding: .75rem;
}

.status {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: .82rem;
  padding: .2rem .55rem;
}

.thumb-link {
  display: inline-block;
  line-height: 0;
}

.overview-thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
  height: 54px;
  object-fit: cover;
  width: 72px;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: .85rem 1rem;
  }
}
