:root {
  color-scheme: light;
  --background: #f6f7f9;
  --surface: #ffffff;
  --border: #d8dde5;
  --text: #1d2430;
  --muted: #5e6b7a;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warning: #8a4b0f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 32px auto;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--muted);
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px);
  gap: 16px;
  margin: 20px 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
}

.status,
.errors {
  margin: 18px 0;
  color: var(--muted);
}

.errors {
  color: var(--warning);
}

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

.posting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.posting h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  background: #fbfcfd;
}

.posting a {
  align-self: center;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.posting a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 24px, 1120px);
    margin: 20px auto;
  }

  .toolbar,
  .posting {
    grid-template-columns: 1fr;
    display: grid;
  }

  .filters {
    grid-template-columns: 1fr;
  }
}
