* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.5;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header {
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.subtitle {
  margin: 4px 0 0;
  color: #666666;
}

h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
}

.card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 20px;
  margin-bottom: 16px;
}

.form-card label {
  display: block;
  margin: 14px 0 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-card label:first-of-type {
  margin-top: 0;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 0;
  font: inherit;
  color: #111111;
  background: #ffffff;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #111111;
}

textarea {
  resize: vertical;
}

button {
  font: inherit;
  cursor: pointer;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  padding: 10px 16px;
  border-radius: 0;
}

button:hover {
  background: #f5f5f5;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
  margin-top: 16px;
}

.btn-primary:hover {
  background: #333333;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-row input {
  flex: 1 1 220px;
}

.result-count {
  font-size: 0.875rem;
  color: #666666;
  white-space: nowrap;
}

.item-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.item {
  border-top: 1px solid #eeeeee;
  padding: 16px 0;
}

.item:first-child {
  border-top: none;
  padding-top: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.item-description {
  margin: 6px 0 10px;
  color: #444444;
  word-break: break-word;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #cccccc;
  background: #f5f5f5;
  font-size: 0.8125rem;
  color: #333333;
  cursor: pointer;
}

.tag:hover {
  border-color: #111111;
  background: #eeeeee;
}

.btn-delete {
  font-size: 0.8125rem;
  padding: 4px 10px;
  color: #666666;
  border-color: #cccccc;
}

.btn-delete:hover {
  color: #111111;
  border-color: #111111;
}

.empty-state {
  margin-top: 20px;
  color: #666666;
  font-size: 0.9375rem;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
