body.home {
  overflow: auto;
  background: var(--bg);
}

.home main {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 16px;
}

.home header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.home h1 {
  margin: 0;
  font-size: 28px;
}

#create {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  min-width: 260px;
}

#create input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--panel);
  color: var(--text);
}

#create input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

button.primary {
  width: auto;
  height: 38px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
}

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

#empty {
  color: var(--muted);
}

#boards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.board-card:hover {
  border-color: var(--accent);
}

.board-card a {
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 64px;
}

/* Make the whole card clickable. */
.board-card a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.board-card .meta {
  font-size: 13px;
  color: var(--muted);
}

.board-card .live {
  color: var(--success);
}

.board-card .actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  gap: 2px;
}

.board-card .actions button {
  width: 30px;
  height: 30px;
  color: var(--muted);
}

.board-card .actions button:hover {
  color: var(--text);
}

.board-card .actions svg {
  width: 16px;
  height: 16px;
}
