.fizzyboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
}

.fizzyboard__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.fizzyboard__left {
  min-width: 0;
}

.fizzyboard__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fizzyboard__search {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 6px;
  align-items: center;
  min-width: 220px;
  max-width: 520px;
}

.fizzyboard__search input[type="text"] {
  width: 100%;
}

.fizzyboard__search-clear {
  width: 30px;
  height: 30px;
  line-height: 1;
  padding: 0;
}

.fizzyboard__volume {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 240px;
}

.fizzyboard__volume-label {
  white-space: nowrap;
  opacity: 0.9;
}

.fizzyboard__volume-out {
  min-width: 44px;
  text-align: right;
  opacity: 0.9;
}

.fizzyboard__content {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 4px;
}

.fizzyboard__group-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 8px 0 6px 0;
  box-sizing: border-box;
}

.fizzyboard__chev {
  width: 18px;
  text-align: center;
}

.fizzyboard__group-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fizzyboard__count {
  opacity: 0.85;
}

.fizzyboard__grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.fizzyboard__row {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
}

.fizzyboard__row-top {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
}

.fizzyboard__fav {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
}

.fizzyboard__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.fizzyboard__buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fizzyboard__loop {
  display: grid;
  gap: 6px;
}

.fizzyboard__loop-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fizzyboard__loop-seconds {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fizzyboard__loop-seconds input[type="number"] {
  width: 80px;
}

.fizzyboard__loop-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fizzyboard__empty {
  opacity: 0.85;
  margin: 0 0 8px 0;
}

@media (max-width: 520px) {
  .fizzyboard__header {
    grid-template-columns: 1fr;
  }
  .fizzyboard__right {
    justify-content: space-between;
  }
  .fizzyboard__row-top {
    grid-template-columns: 28px 1fr;
  }
  .fizzyboard__buttons {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }
}
