:root {
  --pin-toolbar-blue: #1677e8;
  --pin-toolbar-blue-strong: #0f5fbd;
  --pin-toolbar-border: #dce4ef;
  --pin-toolbar-panel: #ffffff;
  --pin-toolbar-icon: #667085;
}

#threadlist .th {
  padding: 9px 12px !important;
}

#threadlist .th table,
#threadlist .th tbody,
#threadlist .th tr {
  display: block;
  width: 100%;
}

#threadlist .th tr {
  min-height: 32px;
}

#threadlist .th th {
  display: block;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
}

#threadlist .th td.by,
#threadlist .th td.num {
  display: none !important;
}

#threadlist .pin-thread-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 32px;
  text-align: left;
}

#threadlist .pin-thread-sortbox {
  position: relative;
}

#threadlist .pin-thread-sortbox:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 11px;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1px solid var(--pin-toolbar-icon);
  border-bottom: 1px solid var(--pin-toolbar-icon);
  transform: rotate(45deg);
  pointer-events: none;
}

#threadlist .pin-thread-sort-select {
  width: 270px;
  height: 32px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--pin-toolbar-border) !important;
  border-radius: 5px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--pin-toolbar-panel) !important;
  color: #344054 !important;
  font-size: 12px;
  line-height: 32px;
}

#threadlist .pin-thread-sort-select:focus {
  border-color: var(--pin-toolbar-blue) !important;
  box-shadow: 0 0 0 2px rgba(22, 119, 232, 0.12);
}

#threadlist .pin-view-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#threadlist .pin-view-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--pin-toolbar-border) !important;
  border-radius: 5px;
  background-color: var(--pin-toolbar-panel) !important;
  color: var(--pin-toolbar-icon) !important;
  text-decoration: none !important;
}

#threadlist .pin-view-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#threadlist .pin-view-btn:before {
  content: "";
  display: block;
}

#threadlist .pin-view-grid:before {
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 8px 0 / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 0 8px / 6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 8px 8px / 6px 6px no-repeat;
}

#threadlist .pin-view-list:before {
  width: 15px;
  height: 12px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 15px 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 5px / 15px 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 10px / 15px 2px no-repeat;
}

#threadlist .pin-view-newwin:before {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-sizing: border-box;
}

#threadlist .pin-view-newwin:after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-sizing: border-box;
}

#threadlist .pin-view-newwin.is-active:after {
  top: 7px;
  right: 7px;
}

#threadlist .pin-view-btn:hover,
#threadlist .pin-view-btn.is-active {
  border-color: var(--pin-toolbar-blue-strong) !important;
  background-color: var(--pin-toolbar-blue) !important;
  color: #ffffff !important;
}

#threadlist .pin-filter-legacy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
