body {
  color: lch(18, 0, 0);
  height: 100dvh;
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 20px;
  margin: 0;
}

h2 {
  font-size: 16px;
  margin: 0 0 16px;
}

.icon {
  font-family: 'Material Symbols Outlined';
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.app {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  height: 100%;
  margin: 0 auto;
  max-height: 100dvh;
  overflow: hidden;
  max-width: 120ch;
}

.header {
  grid-column: 1 / 3;
  padding: 24px 24px 8px;
}

.list {
  box-sizing: border-box;
  overflow-y: scroll;
  padding: 0 24px 24px;
}

.list__header {
  background: white;
  padding: 24px 0 4px;
  position: sticky;
  top: 0;
}

.filter {
  border: lch(10, 10, 10) 1px solid;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  max-width: fit-content;
  overflow: hidden;
  padding: 0 24px 0 0;
  position: relative;
  transition: border-color 100ms ease-in;
}

.filter:has(input:focus) {
  border-color: lch(54 32 233);
}

.filter input[type="text"] {
  border: none;
  font-size: 14px;
  line-height: 14px;
  outline: 0;
  padding: 4px 0 4px 8px;
  width: 200px;
}

.filter__clear {
  align-items: center;
  border: none;
  color: lch(40, 0, 0);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 100,
    'opsz' 20;
  height: 16px;
  line-height: 16px;
  justify-content: center;
  padding: 4px 8px;
  position: absolute;
  right: 4px;
  top: 4px;
  transition: color 100ms ease-in;
  width: 16px;
}

.filter__clear:hover {
  color: lch(54 32 233);
}

.list-options {
  border-collapse: collapse;
  width: 100%;
}

.unclassified-response {
  cursor: pointer
}

.unclassified-response > td {
  padding: 6px 0 6px 16px;
}

.unclassified-response > td:first-child {
  padding-left: 0;
}

.unclassified-response > td {
  border-top: lch(80 0 0) 1px solid;
}

.category-item td {
  background: transparent
  transition: background 200ms ease-in;
}

.category-item.is-highlighted td {
  background: lch(80 37.77 226.08 / 0.4);
}

.category-item.is-highlighted .count {
  background: lch(80 37.77 226.08 / 0.8);
  font-weight: 700;
}

.category {
  font-weight: 600;
}

.subcategory {
  padding-left: 16px;
}

.count {
  background: hsl(0, 0%, 90%);
  border-radius: 6px;
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 4px 6px;
}

.add-to-category {
  align-items: center;
  background: lch(80 37.77 226.08 / 0.7);
  border-radius: 3px;
  color: lch(33 31.75 255.47);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  justify-content: center;
  height: 16px;
  transition: all 100ms ease-in;
  width: 24px;
}

.add-to-category:hover {
  background: lch(90 37.77 226.08 / 0.7);
  color: lch(23 31.75 255.47);
}
